diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index dd23c704d..742d04031 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -316,7 +316,10 @@ int xconnect_stream(const len_and_sockaddr *lsa); | |||
316 | /* Return malloc'ed len_and_sockaddr with socket address of host:port | 316 | /* Return malloc'ed len_and_sockaddr with socket address of host:port |
317 | * Currently will return IPv4 or IPv6 sockaddrs only | 317 | * Currently will return IPv4 or IPv6 sockaddrs only |
318 | * (depending on host), but in theory nothing prevents e.g. | 318 | * (depending on host), but in theory nothing prevents e.g. |
319 | * UNIX socket address being returned, IPX sockaddr etc... */ | 319 | * UNIX socket address being returned, IPX sockaddr etc... |
320 | * On error does bb_error_msg and returns NULL */ | ||
321 | len_and_sockaddr* host2sockaddr(const char *host, int port); | ||
322 | /* Versions which die on error */ | ||
320 | len_and_sockaddr* xhost2sockaddr(const char *host, int port); | 323 | len_and_sockaddr* xhost2sockaddr(const char *host, int port); |
321 | #if ENABLE_FEATURE_IPV6 | 324 | #if ENABLE_FEATURE_IPV6 |
322 | /* Same, useful if you want to force family (e.g. IPv6) */ | 325 | /* Same, useful if you want to force family (e.g. IPv6) */ |