get_sockaddr


Description:

public void* get_sockaddr (out int len)

Returns the sockaddr associated with this, with its length in *len.

If the sockaddr is not yet known, returns null.

This method is not thread-safe; if you call it while this is being resolved in another thread, it may return garbage. You can use is_resolved to safely test whether or not an address is resolved before fetching its name or address.

Parameters:

this

a Address

len

return location for sockaddr length

Returns:

the sockaddr, or null