Spatial: Accurate analysis of hashing function performance
[pachi/peepo.git] / network.h
blobefbe0e31a2fe47332940f580f9d455ee0e936cf1
1 #ifndef PACHI_NETWORK_H
2 #define PACHI_NETWORK_H
4 #ifdef _WIN32
5 #include <winsock2.h>
6 #else
7 #include <netinet/in.h>
8 #endif
10 int port_listen(char *port, int max_connections);
11 int open_server_connection(int socket, struct in_addr *client);
12 void open_log_port(char *port);
13 void open_gtp_connection(int *socket, char *port);
15 #endif