summaryrefslogtreecommitdiffstats
path: root/sesman/tcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'sesman/tcp.h')
-rw-r--r--sesman/tcp.h20
1 files changed, 16 insertions, 4 deletions
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