sockaddr_to_string_opt
Name
sockaddr_to_string_opt — Renders a socket address into a human readable form
Synopsis
#include "netlistener.h"
| int **sockaddr_to_string_opt** (
| s, | |
| | buffer, | |
| | buf_size, | |
| | opt)
; | |
struct sockaddr * <var class="pdparam">s</var>
;
char * <var class="pdparam">buffer</var>
;
int <var class="pdparam">buf_size</var>
;
int <var class="pdparam">opt</var>
;
Description
Note
This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.
Renders a socket address into a human readable form.
- s
-
the socket address
- buffer
-
the buffer into which to render.
- l
-
the sizeof(buffer)
- opt
-
options bitmap
Renders the address into the provided buffer. buffer must not be NULL. Currently, the only option is "EC_SA2S_NO_PORT."
Returns the length of the rendered address.
**Configuration Change. ** This feature is available starting from Momentum 3.4.0.