File: [Platon] / libplaton / utils / server-backend / server-backend.h (download)
Revision 1.3, Wed Oct 16 21:04:54 2002 UTC (21 years, 5 months ago) by nepto
Changes since 1.2: +2 -2
lines
Interactive communication implemented. Use -i switch.
Code split into several parts and redunand added into utils.c file.
server-backend2.[ch] removed, server-backed-fast.c added, they both use
the same header server-backend.h file.
README added with description and compilation notes.
|
/*
* server_backend.h - network server socketing backend
*
* (c) 2001 Ondrej Jombik <nepto@pobox.sk>
*/
#define PROG_NAME "server-backend"
#define PORT (9990)
#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;
};
Platon Group <platon@platon.org> http://platon.org/
|