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

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

Revízia 1.1.1.1, Wed Oct 3 21:03:41 2001 UTC (22 years, 6 months ago) by jombik9


Zmeny od 1.1: +0 -0 [lines]

server network socket backend interface

/*
 * server_backend.h - network server socketing backend
 *
 * (c) 2001 Ondrej Jombik <nepto@pobox.sk>
 */

#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;
};



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