/* * server_backend.h - network server socketing backend * * (c) 2001 Ondrej Jombik */ #define PROG_NAME "server-backend" #define PORT (9876) #define BUFSIZE (1024) #define IP_SIZE (4*3 + 3 + 1) #define HOST_SIZE (50) struct client { int fd; char ip[IP_SIZE + 1]; /* 255.255.255.255 */ char host[HOST_SIZE + 1]; int port; int pid; struct client *next; };