Class NetworkAddress
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class NetworkAddress : Object, IObject, INotifyPropertyChanged, IDisposable, SocketConnectable, IHandle, GTypeProvider
- Inheritance
-
NetworkAddress
- Implements
-
- Inherited Members
-
Constructors
NetworkAddress(bool, params ConstructArgument[])
protected NetworkAddress(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
bool
constructArguments
ConstructArgument[]
NetworkAddress(IntPtr, bool)
protected NetworkAddress(IntPtr ptr, bool ownedRef)
Parameters
ptr
IntPtr
ownedRef
bool
Fields
HostnamePropertyDefinition
public static readonly Property<string?, NetworkAddress> HostnamePropertyDefinition
Field Value
- Property<string, NetworkAddress>
PortPropertyDefinition
public static readonly Property<uint, NetworkAddress> PortPropertyDefinition
Field Value
- Property<uint, NetworkAddress>
SchemePropertyDefinition
public static readonly Property<string?, NetworkAddress> SchemePropertyDefinition
Field Value
- Property<string, NetworkAddress>
Properties
Hostname
public string? Hostname { get; }
Property Value
- string
Port
public uint Port { get; }
Property Value
- uint
Scheme
public string? Scheme { get; }
Property Value
- string
Methods
Enumerate()
[Version("2.22")]
public SocketAddressEnumerator Enumerate()
Returns
- SocketAddressEnumerator
GetGType()
public static Type GetGType()
Returns
- Type
GetHostname()
[Version("2.22")]
public string GetHostname()
Returns
- string
GetPort()
[Version("2.22")]
public ushort GetPort()
Returns
- ushort
GetScheme()
[Version("2.26")]
public string? GetScheme()
Returns
- string
New(string, ushort)
[Version("2.22")]
public static NetworkAddress New(string hostname, ushort port)
Parameters
hostname
string
port
ushort
Returns
- NetworkAddress
NewLoopback(ushort)
[Version("2.44")]
public static NetworkAddress NewLoopback(ushort port)
Parameters
port
ushort
Returns
- NetworkAddress
Parse(string, ushort)
[Version("2.22")]
public static SocketConnectable Parse(string hostAndPort, ushort defaultPort)
Parameters
hostAndPort
string
defaultPort
ushort
Returns
- SocketConnectable
ParseUri(string, ushort)
[Version("2.26")]
public static SocketConnectable ParseUri(string uri, ushort defaultPort)
Parameters
uri
string
defaultPort
ushort
Returns
- SocketConnectable
ProxyEnumerate()
[Version("2.26")]
public SocketAddressEnumerator ProxyEnumerate()
Returns
- SocketAddressEnumerator
ToString()
[Version("2.48")]
public string ToString()
Returns
- string