5 #include <sys/socket.h>
6 #include <netinet/in.h>
18 extern int Network_get_port(int socket); // get port used by socket
19 extern int Network_server(char * addr, int port);
20 extern int Network_client(const char * addr, int port, int timeout);
22 extern int Network_server_bind(int port, int * bound);
23 extern int Network_server_listen(int sfd, char * addr);
25 extern void Network_close(int sfd);