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
constructArgumentsConstructArgument[]
ProxyAddress(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ProxyAddress(CreationData data)
Parameters
dataCreationData
ProxyAddress(ProxyAddressHandle)
protected ProxyAddress(ProxyAddressHandle handle)
Parameters
handleProxyAddressHandle
Fields
DestinationHostnamePropertyDefinition
public static readonly Property<string?, ProxyAddress> DestinationHostnamePropertyDefinition
Field Value
DestinationPortPropertyDefinition
public static readonly Property<uint, ProxyAddress> DestinationPortPropertyDefinition
Field Value
DestinationProtocolPropertyDefinition
public static readonly Property<string?, ProxyAddress> DestinationProtocolPropertyDefinition
Field Value
PasswordPropertyDefinition
public static readonly Property<string?, ProxyAddress> PasswordPropertyDefinition
Field Value
ProtocolPropertyDefinition
public static readonly Property<string?, ProxyAddress> ProtocolPropertyDefinition
Field Value
UriPropertyDefinition
public static readonly Property<string?, ProxyAddress> UriPropertyDefinition
Field Value
UsernamePropertyDefinition
public static readonly Property<string?, ProxyAddress> UsernamePropertyDefinition
Field Value
Properties
DestinationHostname
public string? DestinationHostname { get; }
Property Value
DestinationPort
public uint DestinationPort { get; }
Property Value
DestinationProtocol
public string? DestinationProtocol { get; }
Property Value
Password
public string? Password { get; }
Property Value
Protocol
public string? Protocol { get; }
Property Value
Uri
public string? Uri { get; }
Property Value
Username
public string? Username { get; }
Property Value
Methods
Enumerate()
[Version("2.22")]
public SocketAddressEnumerator Enumerate()
Returns
GetDestinationHostname()
[Version("2.26")]
public string GetDestinationHostname()
Returns
GetDestinationPort()
[Version("2.26")]
public ushort GetDestinationPort()
Returns
GetDestinationProtocol()
[Version("2.34")]
public string GetDestinationProtocol()
Returns
GetGType()
public static Type GetGType()
Returns
GetPassword()
[Version("2.26")]
public string? GetPassword()
Returns
GetProtocol()
[Version("2.26")]
public string GetProtocol()
Returns
GetUri()
[Version("2.34")]
public string? GetUri()
Returns
GetUsername()
[Version("2.26")]
public string? GetUsername()
Returns
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
inetaddrInetAddressportushortprotocolstringdestHostnamestringdestPortushortusernamestringpasswordstring
Returns
NewFromPointer(nint, bool)
Creates a new managed ProxyAddress instance for a given pointer.
public static ProxyAddress NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new ProxyAddress and sets the properties specified by the construct arguments.
public static ProxyAddress 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()