Table of Contents

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

constructArguments ConstructArgument[]

InetSocketAddress(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected InetSocketAddress(CreationData data)

Parameters

data CreationData

InetSocketAddress(InetSocketAddressHandle)

protected InetSocketAddress(InetSocketAddressHandle handle)

Parameters

handle InetSocketAddressHandle

Fields

AddressPropertyDefinition

public static readonly Property<InetAddress?, InetSocketAddress> AddressPropertyDefinition

Field Value

Property<InetAddress, InetSocketAddress>

FlowinfoPropertyDefinition

public static readonly Property<uint, InetSocketAddress> FlowinfoPropertyDefinition

Field Value

Property<uint, InetSocketAddress>

PortPropertyDefinition

public static readonly Property<uint, InetSocketAddress> PortPropertyDefinition

Field Value

Property<uint, InetSocketAddress>

ScopeIdPropertyDefinition

public static readonly Property<uint, InetSocketAddress> ScopeIdPropertyDefinition

Field Value

Property<uint, InetSocketAddress>

Properties

Address

public InetAddress? Address { get; }

Property Value

InetAddress

Flowinfo

public uint Flowinfo { get; }

Property Value

uint

Port

public uint Port { get; }

Property Value

uint

ScopeId

public uint ScopeId { get; }

Property Value

uint

Methods

Enumerate()

[Version("2.22")]
public SocketAddressEnumerator Enumerate()

Returns

SocketAddressEnumerator

GetAddress()

[Version("2.22")]
public InetAddress GetAddress()

Returns

InetAddress

GetFlowinfo()

[Version("2.32")]
public uint GetFlowinfo()

Returns

uint

GetGType()

public static Type GetGType()

Returns

Type

GetPort()

[Version("2.22")]
public ushort GetPort()

Returns

ushort

GetScopeId()

[Version("2.32")]
public uint GetScopeId()

Returns

uint

New(InetAddress, ushort)

[Version("2.22")]
public static InetSocketAddress New(InetAddress address, ushort port)

Parameters

address InetAddress
port ushort

Returns

InetSocketAddress

NewFromPointer(nint, bool)

Creates a new managed InetSocketAddress instance for a given pointer.

public static InetSocketAddress NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

InetSocketAddress

NewFromString(string, uint)

[Version("2.40")]
public static InetSocketAddress? NewFromString(string address, uint port)

Parameters

address string
port uint

Returns

InetSocketAddress

NewWithProperties(ConstructArgument[])

Creates a new InetSocketAddress and sets the properties specified by the construct arguments.

public static InetSocketAddress NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

InetSocketAddress

ProxyEnumerate()

[Version("2.26")]
public SocketAddressEnumerator ProxyEnumerate()

Returns

SocketAddressEnumerator

ToString()

[Version("2.48")]
public string ToString()

Returns

string