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
21 #define C_IN_USE (1<<0)
22 #define C_INFO_A (1<<1)
23 #define C_SOCKET (1<<2)
24 #define C_ESTABL (1<<3)
25 #define C_HANGUP (1<<4)
27 #define SEND_I_MAX 128
28 #define SEND_I_NAME 'n'
29 #define SEND_I_G_CAP 'g'
30 #define SEND_I_AV_CAP 'c'
32 /* net specific variables */
33 typedef s_connection {
35 char name[CHAR_USERNAME];
39 unsigned char cap; /* general capabilities */
40 unsigned short avcap; /* audio/video capabilities */
44 int l_fd; /* listen file descriptor */
48 /* limited connections by now -- replaced by list management later */
50 t_connection connection[MAX_CONNECTIONS];
51 unsigned int sendmask; /* 32 bits for maximum of 32 connections */