diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2018-05-13 23:43:10 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2018-05-13 23:43:10 +0200 |
commit | 3e854ba53063062a4824966ae1b6c93e6100cea4 (patch) | |
tree | dd5de5c014018d7c4ba50dde77d886d2f1c42d10 /src/socket.h | |
parent | d336c8771f617df35c43f28feae6c3f83512deaf (diff) |
POTD skeleton #49.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/socket.h')
-rw-r--r-- | src/socket.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/socket.h b/src/socket.h index d2bb160..913f6c2 100644 --- a/src/socket.h +++ b/src/socket.h @@ -28,6 +28,10 @@ int socket_accept_in(const psocket *psock, psocket *client_psock); int socket_connect_in(psocket *psock, struct addrinfo **results); +int socket_connectaddr_in(psocket *psock, struct addrinfo **results, + char host_buf[NI_MAXHOST], + char service_buf[NI_MAXSERV]); + int socket_addrtostr_in(const psocket *psock, char hbuf[NI_MAXHOST], char sbuf[NI_MAXSERV]); |