unsafe fn sockname<F>(f: F) -> Result<SocketAddr>Expand description
Wraps a call to a platform function that returns a socket address.
§Safety
- if
freturns a success (i.e.cvtreturnsOkwhen called on the return value), the buffer provided tofmust have been initialized with a valid C socket address, the length of which must be written to the second argument.