diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h index 794049df9..b802e01d3 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -324,11 +324,12 @@ typedef struct len_and_sockaddr { | |||
324 | /* Create stream socket, and allocated suitable lsa | 324 | /* Create stream socket, and allocated suitable lsa |
325 | * (lsa of correct size and lsa->sa.sa_family (AF_INET/AF_INET6)) */ | 325 | * (lsa of correct size and lsa->sa.sa_family (AF_INET/AF_INET6)) */ |
326 | int xsocket_stream(len_and_sockaddr **lsap); | 326 | int xsocket_stream(len_and_sockaddr **lsap); |
327 | /* Create server TCP socket bound to bindaddr:port. bindaddr can be NULL, | 327 | /* Create server socket bound to bindaddr:port. bindaddr can be NULL, |
328 | * numeric IP ("N.N.N.N") or numeric IPv6 address, | 328 | * numeric IP ("N.N.N.N") or numeric IPv6 address, |
329 | * and can have ":PORT" suffix (for IPv6 use "[X:X:...:X]:PORT"). | 329 | * and can have ":PORT" suffix (for IPv6 use "[X:X:...:X]:PORT"). |
330 | * If there is no suffix, port argument is used */ | 330 | * If there is no suffix, port argument is used */ |
331 | int create_and_bind_stream_or_die(const char *bindaddr, int port); | 331 | int create_and_bind_stream_or_die(const char *bindaddr, int port); |
332 | int create_and_bind_dgram_or_die(const char *bindaddr, int port); | ||
332 | /* Create client TCP socket connected to peer:port. Peer cannot be NULL. | 333 | /* Create client TCP socket connected to peer:port. Peer cannot be NULL. |
333 | * Peer can be numeric IP ("N.N.N.N"), numeric IPv6 address or hostname, | 334 | * Peer can be numeric IP ("N.N.N.N"), numeric IPv6 address or hostname, |
334 | * and can have ":PORT" suffix (for IPv6 use "[X:X:...:X]:PORT"). | 335 | * and can have ":PORT" suffix (for IPv6 use "[X:X:...:X]:PORT"). |
@@ -370,9 +371,9 @@ char* xmalloc_sockaddr2hostonly_noport(const struct sockaddr *sa, socklen_t sale | |||
370 | char* xmalloc_sockaddr2dotted(const struct sockaddr *sa, socklen_t salen); | 371 | char* xmalloc_sockaddr2dotted(const struct sockaddr *sa, socklen_t salen); |
371 | char* xmalloc_sockaddr2dotted_noport(const struct sockaddr *sa, socklen_t salen); | 372 | char* xmalloc_sockaddr2dotted_noport(const struct sockaddr *sa, socklen_t salen); |
372 | // "old" (ipv4 only) API | 373 | // "old" (ipv4 only) API |
373 | // users: traceroute.c hostname.c | 374 | // users: traceroute.c hostname.c - use _list_ of all IPs |
374 | struct hostent *xgethostbyname(const char *name); | 375 | struct hostent *xgethostbyname(const char *name); |
375 | // Also inetd.c and inetd.c are using gethostbyname(), | 376 | // Also mount.c and inetd.c are using gethostbyname(), |
376 | // + inet_common.c has additional IPv4-only stuff | 377 | // + inet_common.c has additional IPv4-only stuff |
377 | 378 | ||
378 | 379 | ||