Class SocketAddress
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class SocketAddress : Object, SocketConnectable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
SocketAddress
- Implements
- Derived
- Inherited Members
Constructors
SocketAddress(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 SocketAddress(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
SocketAddress(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected SocketAddress(CreationData data)
Parameters
dataCreationData
SocketAddress(SocketAddressHandle)
protected SocketAddress(SocketAddressHandle handle)
Parameters
handleSocketAddressHandle
Fields
FamilyPropertyDefinition
public static readonly Property<SocketFamily, SocketAddress> FamilyPropertyDefinition
Field Value
Properties
Family
public SocketFamily Family { get; }
Property Value
Methods
Enumerate()
[Version("2.22")]
public SocketAddressEnumerator Enumerate()
Returns
GetFamily()
[Version("2.22")]
public SocketFamily GetFamily()
Returns
GetGType()
public static Type GetGType()
Returns
GetNativeSize()
[Version("2.22")]
public nint GetNativeSize()
Returns
NewFromNative(nint, nuint)
[Version("2.22")]
public static SocketAddress NewFromNative(nint native, nuint len)
Parameters
Returns
NewFromPointer(nint, bool)
Creates a new managed SocketAddress instance for a given pointer.
public static SocketAddress NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new SocketAddress and sets the properties specified by the construct arguments.
public static SocketAddress NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
ProxyEnumerate()
[Version("2.26")]
public SocketAddressEnumerator ProxyEnumerate()
Returns
ToNative(nint, nuint)
[Version("2.22")]
public bool ToNative(nint dest, nuint destlen)
Parameters
Returns
ToString()
[Version("2.48")]
public string ToString()