l3.xsock/lib/xsock_global.h

36 lines
774 B
C
Raw Normal View History

2006-01-10 10:42:33 +00:00
#ifndef _XSOCK_GLOBAL
#define _XSOCK_GLOBAL 1
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <sstream>
#include <syslog.h>
#include <stdio.h>
#include <stdlib.h>
#include <syslog.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/errno.h>
#include <sys/time.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <math.h>
#include <time.h>
#include <fcntl.h>
#include <sys/stat.h>
/* sp<73>cifie le nombre maximum de demandes de connexion en attente d'<27>tre accept<70>es. */
#define XSOCK_MESSAGES_LENGTH 128
#define XSOCK_CHUNK_LENGTH 4096
#define XSOCK_INVALID_SOCKET -1
#define MAXGAUCHE(X,Y) (X<Y)?Y:X
#ifndef MIN
#define MIN(X,Y) (X<Y)?X:Y
#endif
#endif