NativeSocketAddress

A socket address of some unknown native type.

Constructors

this
this(GNativeSocketAddress* gNativeSocketAddress, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(void* native, size_t len)

Creates a new gio.NativeSocketAddress for native and len.

Members

Functions

getNativeSocketAddressStruct
GNativeSocketAddress* getNativeSocketAddressStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gNativeSocketAddress
GNativeSocketAddress* gNativeSocketAddress;

the main Gtk struct

Inherited Members

From SocketAddress

gSocketAddress
GSocketAddress* gSocketAddress;

the main Gtk struct

getSocketAddressStruct
GSocketAddress* getSocketAddressStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getFamily
GSocketFamily getFamily()

Gets the socket family type of address.

getNativeSize
ptrdiff_t getNativeSize()

Gets the size of address's native struct sockaddr. You can use this to allocate memory to pass to Socket.addressToNative.

toNative
bool toNative(void* dest, size_t destlen)

Converts a gio.SocketAddress to a native struct sockaddr, which can be passed to low-level functions like connect() or bind().