SocketAddress.from_native


Description:

public SocketAddress.from_native (void* native, size_t len)

Creates a SocketAddress subclass corresponding to the native struct sockaddr native.

Parameters:

native

a pointer to a struct sockaddr

len

the size of the memory location pointed to by native

Returns:

a new SocketAddress if native could successfully be converted, otherwise null