From 6cbc09be53e8ee7c35cd3a281360412361ffc6ef Mon Sep 17 00:00:00 2001 From: ilsimo Date: Sun, 25 Mar 2007 21:20:20 +0000 Subject: added ListenAddress configuration option --- sesman/tcp.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'sesman/tcp.h') diff --git a/sesman/tcp.h b/sesman/tcp.h index 57f9716d..e8fee60b 100644 --- a/sesman/tcp.h +++ b/sesman/tcp.h @@ -18,10 +18,10 @@ */ /** - * + * * @file tcp.h * @brief Tcp stream functions declarations - * @author Jay Sorg + * @author Jay Sorg, Simone Fedele * */ @@ -35,7 +35,7 @@ * @param data Data buffer * @param len Data buffer size * @return 0 on success, 1 on error - * + * */ int DEFAULT_CC tcp_force_recv(int sck, char* data, int len); @@ -47,9 +47,21 @@ tcp_force_recv(int sck, char* data, int len); * @param data Data buffer * @param len Data buffer size * @return 0 on success, 1 on error - * + * */ int DEFAULT_CC tcp_force_send(int sck, char* data, int len); +/** + * + * @brief Binds the listening socket + * @param sck Listening socket + * @param addr Listening address + * @param port Listening port + * @return 0 on success, -1 on error + * + */ +int DEFAULT_CC +tcp_bind(int sck, char* addr, char* port); + #endif -- cgit v1.2.3