Table of Contents

Class ProxyAddress

Namespace
Gio
Assembly
Gio-2.0.dll
public class ProxyAddress : InetSocketAddress, SocketConnectable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
ProxyAddress
Implements
Inherited Members

Constructors

ProxyAddress(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 ProxyAddress(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

ProxyAddress(CreationData)

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

Parameters

data CreationData

ProxyAddress(ProxyAddressHandle)

protected ProxyAddress(ProxyAddressHandle handle)

Parameters

handle ProxyAddressHandle

Fields

DestinationHostnamePropertyDefinition

public static readonly Property<string?, ProxyAddress> DestinationHostnamePropertyDefinition

Field Value

Property<string, ProxyAddress>

DestinationPortPropertyDefinition

public static readonly Property<uint, ProxyAddress> DestinationPortPropertyDefinition

Field Value

Property<uint, ProxyAddress>

DestinationProtocolPropertyDefinition

public static readonly Property<string?, ProxyAddress> DestinationProtocolPropertyDefinition

Field Value

Property<string, ProxyAddress>

PasswordPropertyDefinition

public static readonly Property<string?, ProxyAddress> PasswordPropertyDefinition

Field Value

Property<string, ProxyAddress>

ProtocolPropertyDefinition

public static readonly Property<string?, ProxyAddress> ProtocolPropertyDefinition

Field Value

Property<string, ProxyAddress>

UriPropertyDefinition

public static readonly Property<string?, ProxyAddress> UriPropertyDefinition

Field Value

Property<string, ProxyAddress>

UsernamePropertyDefinition

public static readonly Property<string?, ProxyAddress> UsernamePropertyDefinition

Field Value

Property<string, ProxyAddress>

Properties

DestinationHostname

public string? DestinationHostname { get; }

Property Value

string

DestinationPort

public uint DestinationPort { get; }

Property Value

uint

DestinationProtocol

public string? DestinationProtocol { get; }

Property Value

string

Password

public string? Password { get; }

Property Value

string

Protocol

public string? Protocol { get; }

Property Value

string

Uri

public string? Uri { get; }

Property Value

string

Username

public string? Username { get; }

Property Value

string

Methods

Enumerate()

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

Returns

SocketAddressEnumerator

GetDestinationHostname()

[Version("2.26")]
public string GetDestinationHostname()

Returns

string

GetDestinationPort()

[Version("2.26")]
public ushort GetDestinationPort()

Returns

ushort

GetDestinationProtocol()

[Version("2.34")]
public string GetDestinationProtocol()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetPassword()

[Version("2.26")]
public string? GetPassword()

Returns

string

GetProtocol()

[Version("2.26")]
public string GetProtocol()

Returns

string

GetUri()

[Version("2.34")]
public string? GetUri()

Returns

string

GetUsername()

[Version("2.26")]
public string? GetUsername()

Returns

string

New(InetAddress, ushort, string, string, ushort, string?, string?)

[Version("2.26")]
public static ProxyAddress New(InetAddress inetaddr, ushort port, string protocol, string destHostname, ushort destPort, string? username, string? password)

Parameters

inetaddr InetAddress
port ushort
protocol string
destHostname string
destPort ushort
username string
password string

Returns

ProxyAddress

NewFromPointer(nint, bool)

Creates a new managed ProxyAddress instance for a given pointer.

public static ProxyAddress NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

ProxyAddress

NewWithProperties(ConstructArgument[])

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

public static ProxyAddress NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

ProxyAddress

ProxyEnumerate()

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

Returns

SocketAddressEnumerator

ToString()

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

Returns

string