diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index f3121eb47..357571fd8 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -530,6 +530,8 @@ int create_and_connect_stream_or_die(const char *peer, int port) FAST_FUNC; | |||
| 530 | int xconnect_stream(const len_and_sockaddr *lsa) FAST_FUNC; | 530 | int xconnect_stream(const len_and_sockaddr *lsa) FAST_FUNC; |
| 531 | /* Get local address of bound or accepted socket */ | 531 | /* Get local address of bound or accepted socket */ |
| 532 | len_and_sockaddr *get_sock_lsa(int fd) FAST_FUNC RETURNS_MALLOC; | 532 | len_and_sockaddr *get_sock_lsa(int fd) FAST_FUNC RETURNS_MALLOC; |
| 533 | /* Get remote address of connected or accepted socket */ | ||
| 534 | len_and_sockaddr *get_peer_lsa(int fd) FAST_FUNC RETURNS_MALLOC; | ||
| 533 | /* Return malloc'ed len_and_sockaddr with socket address of host:port | 535 | /* Return malloc'ed len_and_sockaddr with socket address of host:port |
| 534 | * Currently will return IPv4 or IPv6 sockaddrs only | 536 | * Currently will return IPv4 or IPv6 sockaddrs only |
| 535 | * (depending on host), but in theory nothing prevents e.g. | 537 | * (depending on host), but in theory nothing prevents e.g. |
