sockaddr_to_string — Renders a socket address into human-readable form
char * **sockaddr_to_string** ( | sa, | |
| | buffer, | |
| | len
); | |
Renders a socket address into human-readable form.
You may find that sockaddr_to_string2 is slightly easier to use.
The socket address.
The target for the human-readable form of the socket address.
NULLon input, then a static, thread-unsafe buffer will be used and returned.
The buffer length.
*lmust store the
buffersize. As as side effect,
*lwill be updated with the length of the rendered string.
Returns the buffer that was used for rendering the socket address.
It is legal to call this function in any thread.