Class InetSocketAddress
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class InetSocketAddress : SocketAddress, SocketConnectable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
InetSocketAddress
- Implements
- Derived
- Inherited Members
Constructors
InetSocketAddress(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 InetSocketAddress(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
InetSocketAddress(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected InetSocketAddress(CreationData data)
Parameters
dataCreationData
InetSocketAddress(InetSocketAddressHandle)
protected InetSocketAddress(InetSocketAddressHandle handle)
Parameters
handleInetSocketAddressHandle
Fields
AddressPropertyDefinition
public static readonly Property<InetAddress?, InetSocketAddress> AddressPropertyDefinition
Field Value
FlowinfoPropertyDefinition
public static readonly Property<uint, InetSocketAddress> FlowinfoPropertyDefinition
Field Value
PortPropertyDefinition
public static readonly Property<uint, InetSocketAddress> PortPropertyDefinition
Field Value
ScopeIdPropertyDefinition
public static readonly Property<uint, InetSocketAddress> ScopeIdPropertyDefinition
Field Value
Properties
Address
public InetAddress? Address { get; }
Property Value
Flowinfo
public uint Flowinfo { get; }
Property Value
Port
public uint Port { get; }
Property Value
ScopeId
public uint ScopeId { get; }
Property Value
Methods
Enumerate()
[Version("2.22")]
public SocketAddressEnumerator Enumerate()
Returns
GetAddress()
[Version("2.22")]
public InetAddress GetAddress()
Returns
GetFlowinfo()
[Version("2.32")]
public uint GetFlowinfo()
Returns
GetGType()
public static Type GetGType()
Returns
GetPort()
[Version("2.22")]
public ushort GetPort()
Returns
GetScopeId()
[Version("2.32")]
public uint GetScopeId()
Returns
New(InetAddress, ushort)
[Version("2.22")]
public static InetSocketAddress New(InetAddress address, ushort port)
Parameters
addressInetAddressportushort
Returns
NewFromPointer(nint, bool)
Creates a new managed InetSocketAddress instance for a given pointer.
public static InetSocketAddress NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewFromString(string, uint)
[Version("2.40")]
public static InetSocketAddress? NewFromString(string address, uint port)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new InetSocketAddress and sets the properties specified by the construct arguments.
public static InetSocketAddress 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()