source: trunk/instant_messenger/socket/BKP_20071105/BKP_20071026/BKP_20071019/BKP_20071018/server_bkp_20071010.h @ 151

Revision 151, 800 bytes checked in by niltonneto, 16 years ago (diff)

Commit da nova versão do módulo, usando agente em C.
Vide Página do módulo do Trac:
http://www.expressolivre.org/dev/wiki/messenger

A versão anterior encontra-se na subpasta bkp (32/64).

Line 
1#include <fcntl.h>
2
3#include <netdb.h>
4#include <netinet/in.h>
5#include <netinet/tcp.h>
6
7#include <openssl/ssl.h>
8#include <openssl/err.h>
9#include <openssl/crypto.h>
10#include <openssl/x509.h>
11#include <openssl/pem.h>
12#include <openssl/bio.h>
13
14#include <pthread.h>
15
16#include <signal.h>
17#include <sys/types.h>
18#include <sys/socket.h>
19#include <string.h>
20#include <stdio.h>
21#include <stdlib.h>
22
23#include <unistd.h>
24
25// define max clients waiting in the queue for connect
26#ifndef __QUEUE_SIZE__
27        #define __QUEUE_SIZE__ 10
28#endif
29
30// __SOCKET_ERROR__ must be -1, don't change this
31#ifndef __SOCKET_ERROR__
32        #define __SOCKET_ERROR__ -1
33#endif
34
35// the jabber's documentation recommends read the
36// packages of socket with size of 4096 (2^12) KB
37#ifndef __BUFFER_SIZE__
38        #define __BUFFER_SIZE__ 4096
39#endif
Note: See TracBrowser for help on using the repository browser.