CARMA C++
tcpip.h
1 #ifndef tcpip_h
2 #define tcpip_h
3 
4 /* Server socket initialization */
5 
6 int tcp_server_sock(int port, int qlen);
7 int udp_server_sock(int port, int qlen);
8 
9 int tcp_connect(char *host, int port, int dowait);
10 int udp_connect(char *host, int port, int dowait);
11 
12 /* Selection of blocking versus non-blocking I/O */
13 
14 int tcp_set_blocking(int sock, int doblock);
15 
16 #endif