diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-02 12:37:28 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-02 12:37:28 +0000 |
| commit | 729bd9e0b0d5977e9c2c2a4eff7e2f0ca2ad4b9e (patch) | |
| tree | d5cb1a1c7c41b2681ca867c57c3b4e473c0a56be /include | |
| parent | b05a939bcc0249fe8bd94b9795db8f8d93c3921e (diff) | |
| download | busybox-w32-729bd9e0b0d5977e9c2c2a4eff7e2f0ca2ad4b9e.tar.gz busybox-w32-729bd9e0b0d5977e9c2c2a4eff7e2f0ca2ad4b9e.tar.bz2 busybox-w32-729bd9e0b0d5977e9c2c2a4eff7e2f0ca2ad4b9e.zip | |
test: comment out unused code
udpsvd: fake it compile
tcpsvd: more optimal memorizing of IP's for -C
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 | ||
