Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Štvrtok, 28. marec 2024

Súbor: [Platon] / libplaton / utils / server-backend / server-backend.h (stiahnutie)

Revízia 1.3, Wed Oct 16 21:04:54 2002 UTC (21 years, 5 months ago) by nepto


Zmeny od 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.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok