SocketAddress.toNative
bool toNative(void * dest, size_t 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 available, a [gio.types.IOErrorEnum.NoSpace] error is returned. If the address type is not known on the system then a [gio.types.IOErrorEnum.NotSupported] error is returned.
Parameters
dest | a pointer to a memory location that will contain the native struct sockaddr |
destlen | the size of dest. Must be at least as large as [gio.socket_address.SocketAddress.getNativeSize] |
Returns
true if dest was filled in, false on error
Throws
[ErrorWrap]