1 #include <unistd.h>
2 #include <sys/types.h>
3 #include <sys/socket.h>
4 #include <netinet/in.h>
5 #include <arpa/inet.h>
6 #include <time.h>
7 #include <sys/time.h>
8 
9 
10 typedef struct {
11   struct sockaddr_in PlayerIp;
12   char Connected;
13   struct timeval LastPacketTime;
14 } ConnectionStruct;
15 
16 
17 extern ConnectionStruct Connections[MAX_PLAYERS];
18 extern int listenfd;
19 extern int PacketSize;
20 extern int NetSleepTime;
21 extern int GamePort;
22