Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /SocketX/Config.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13 - (hide annotations) (download) (as text)
Tue May 25 06:54:25 2010 UTC (13 years, 10 months ago) by sho1get
File MIME type: text/x-chdr
File size: 1091 byte(s)


1 sho1get 13 #pragma once
2    
3     //////////////////////////////////////////////////////////////////////////
4    
5     #define SM_EVENT (WM_APP + 100)
6     #define SM_GETHOST (WM_APP + 101)
7    
8     #define SX_KA_TIME 30000 // 30 seconds
9     #define SX_KA_INTERVAL 1000 // 1 seconds
10     #define SX_SEND_TIMEOUT 20000 // 20 seconds
11     #define SX_RECV_TIMEOUT 20000 // 20 seconds
12     #define SX_TCP_MAXBUFSIZE 262144 // 256 KByte
13     #define SX_TCP_MINBUFSIZE 8192 // 8 KByte
14     #define SX_UDP_BUFSIZE 4096 // 4 KByte
15    
16     #define FD_SERVER (FD_ACCEPT | FD_WRITE | FD_READ | FD_CLOSE)
17     #define FD_CLIENT (FD_WRITE | FD_READ | FD_CLOSE)
18     #define FD_PEER (FD_WRITE | FD_READ | FD_CLOSE)
19    
20     #define SF_KEY_RND1 0x0001
21     #define SF_KEY_RND2 0x0002
22     #define SF_KEY_RND3 0x0004
23     #define SF_SEC_MODE 0x0008
24     #define SF_SEC_HASH 0x0010
25    
26     //////////////////////////////////////////////////////////////////////////
27    
28     #define DATA_SEND(dt) const_cast<LPSTR>(reinterpret_cast<LPCSTR>(dt))
29     #define DATA_RECEIVE(dt) reinterpret_cast<LPSTR>(dt)
30    
31     //////////////////////////////////////////////////////////////////////////

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26