Class UnixSocketAddress
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class UnixSocketAddress : SocketAddress, SocketConnectable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
UnixSocketAddress
- Implements
- Inherited Members
Constructors
UnixSocketAddress(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 UnixSocketAddress(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
UnixSocketAddress(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected UnixSocketAddress(CreationData data)
Parameters
dataCreationData
UnixSocketAddress(UnixSocketAddressHandle)
protected UnixSocketAddress(UnixSocketAddressHandle handle)
Parameters
handleUnixSocketAddressHandle
Fields
AbstractPropertyDefinition
public static readonly Property<bool, UnixSocketAddress> AbstractPropertyDefinition
Field Value
AddressTypePropertyDefinition
public static readonly Property<UnixSocketAddressType, UnixSocketAddress> AddressTypePropertyDefinition
Field Value
PathPropertyDefinition
public static readonly Property<string?, UnixSocketAddress> PathPropertyDefinition
Field Value
Properties
Abstract
public bool Abstract { get; }
Property Value
AddressType
public UnixSocketAddressType AddressType { get; }
Property Value
Path
public string? Path { get; }
Property Value
Methods
AbstractNamesSupported()
[Version("2.22")]
public static bool AbstractNamesSupported()
Returns
Enumerate()
[Version("2.22")]
public SocketAddressEnumerator Enumerate()
Returns
GetAddressType()
[Version("2.26")]
public UnixSocketAddressType GetAddressType()
Returns
GetGType()
public static Type GetGType()
Returns
GetIsAbstract()
[Version("2.22")]
public bool GetIsAbstract()
Returns
GetPath()
[Version("2.22")]
public string GetPath()
Returns
GetPathLen()
[Version("2.22")]
public nuint GetPathLen()
Returns
New(string)
[Version("2.22")]
public static UnixSocketAddress New(string path)
Parameters
pathstring
Returns
NewAbstract(Span<sbyte>)
public static UnixSocketAddress NewAbstract(Span<sbyte> path)
Parameters
Returns
NewFromPointer(nint, bool)
Creates a new managed UnixSocketAddress instance for a given pointer.
public static UnixSocketAddress NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new UnixSocketAddress and sets the properties specified by the construct arguments.
public static UnixSocketAddress NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
NewWithType(Span<sbyte>, UnixSocketAddressType)
[Version("2.26")]
public static UnixSocketAddress NewWithType(Span<sbyte> path, UnixSocketAddressType type)
Parameters
pathSpan<sbyte>typeUnixSocketAddressType
Returns
ProxyEnumerate()
[Version("2.26")]
public SocketAddressEnumerator ProxyEnumerate()
Returns
ToString()
[Version("2.48")]
public string ToString()