b00e59566a9ee7320b0a4d5652b8544fb87cb6c9
[matches/swarm.git] / src / network.h
1 #ifndef _NETWORK_H
2 #define _NETWORK_H
3
4 #include <sys/types.h>
5 #include <sys/socket.h>
6 #include <netinet/in.h>
7 #include <arpa/inet.h>
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <string.h>
11 #include <unistd.h>
12 #include <netdb.h>
13 #include <fcntl.h>
14 #include <errno.h>
15 #include <strings.h>
16 #include <stdarg.h>
17
18 extern int Network_server(int port);
19 extern int Network_server_r(char * addr, int port);
20 extern int Network_client(const char * addr, int port, int timeout);
21
22 extern void Network_close(int sfd);
23
24 #endif //_NETWORK_H
25
26 //EOF

UCC git Repository :: git.ucc.asn.au