catan

catan.git
git clone git://git.lenczewski.org/catan.git
Log | Files | Refs

agent.h (475B)


      1 #ifndef AGENT_H
      2 #define AGENT_H
      3 
      4 #define _XOPEN_SOURCE 700
      5 #define _GNU_SOURCE
      6 #define _DEFAULT_SOURCE
      7 
      8 #include <inttypes.h>
      9 #include <stdio.h>
     10 #include <stdlib.h>
     11 #include <string.h>
     12 #include <unistd.h>
     13 
     14 #include "catan.h"
     15 
     16 #include <signal.h>
     17 
     18 #include <sys/types.h>
     19 #include <sys/socket.h>
     20 #include <netdb.h>
     21 
     22 #define ARRLEN(arr) (sizeof (arr) / sizeof (arr)[0])
     23 
     24 #define GAME_BOARD_SIZE 3
     25 
     26 struct opts {
     27 	bool verbose;
     28 	char *addr;
     29 	char *port;
     30 };
     31 
     32 #endif /* AGENT_H */