1 /* inet.h -- inet headers */
11 #include <sys/types.h>
12 #include <sys/socket.h>
14 /* net specific includes */
15 #include <netinet/in.h>
18 #define MAX_CONNECTIONS 32
20 #define C_IN_USE (1<<0)
21 #define C_INFO_A (1<<1)
22 #define C_SOCKET (1<<2)
23 #define C_ESTABL (1<<3)
24 #define C_HANGUP (1<<4)
26 /* net specific variables */
27 typedef s_connection {
29 char name[CHAR_USERNAME];
36 int l_fd; /* listen file descriptor */
38 /* limited connections by now -- replaced by list management later */
40 t_connection connection[MAX_CONNECTIONS];