Class NativeSocketAddress
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class NativeSocketAddress : SocketAddress, SocketConnectable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
NativeSocketAddress
- Implements
- Inherited Members
Constructors
NativeSocketAddress(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public NativeSocketAddress(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
NativeSocketAddress(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected NativeSocketAddress(CreationData data)
Parameters
dataCreationData
NativeSocketAddress(NativeSocketAddressHandle)
protected NativeSocketAddress(NativeSocketAddressHandle handle)
Parameters
handleNativeSocketAddressHandle
Methods
Enumerate()
[Version("2.22")]
public SocketAddressEnumerator Enumerate()
Returns
GetGType()
public static Type GetGType()
Returns
New(nint, nuint)
[Version("2.46")]
public static NativeSocketAddress New(nint native, nuint len)
Parameters
Returns
NewFromPointer(nint, bool)
Creates a new managed NativeSocketAddress instance for a given pointer.
public static NativeSocketAddress NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new NativeSocketAddress and sets the properties specified by the construct arguments.
public static NativeSocketAddress NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
ProxyEnumerate()
[Version("2.26")]
public SocketAddressEnumerator ProxyEnumerate()
Returns
ToString()
[Version("2.48")]
public string ToString()