InetSocketAddress

Description An IPv4 or IPv6 socket address; that is, the combination of a GInetAddress and a port number.

Constructors

this
this(GInetSocketAddress* gInetSocketAddress)

Sets our main struct and passes it to the parent class

this
this(InetAddress address, ushort port)

Creates a new GInetSocketAddress for address and port. Since 2.22

Members

Functions

getAddress
InetAddress getAddress()

Gets address's GInetAddress. Since 2.22

getInetSocketAddressStruct
GInetSocketAddress* getInetSocketAddressStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getPort
ushort getPort()

Gets address's port. Since 2.22

getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

gInetSocketAddress
GInetSocketAddress* gInetSocketAddress;

the main Gtk struct

Inherited Members

From SocketAddress

gSocketAddress
GSocketAddress* gSocketAddress;

the main Gtk struct

getSocketAddressStruct
GSocketAddress* getSocketAddressStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
__anonymous
mixin SocketConnectableT!(GSocketAddress)
Undocumented in source.
getFamily
GSocketFamily getFamily()

Gets the socket family type of address. Since 2.22

toNative
int toNative(void* dest, gsize destlen)

Converts a GSocketAddress to a native struct sockaddr, which can be passed to low-level functions like connect() or bind(). If not enough space is availible, a G_IO_ERROR_NO_SPACE error is returned. If the address type is not known on the system then a G_IO_ERROR_NOT_SUPPORTED error is returned. Since 2.22

getNativeSize
gssize getNativeSize()

Gets the size of address's native struct sockaddr. You can use this to allocate memory to pass to g_socket_address_to_native(). Since 2.22

Meta