Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
datatype.h
Package: micq.tgz [view]
Upload User: ai20ln
Upload Date: 2007-01-05
Package Size: 79k
Code Size: 1k
Category:
ICQ-IM-Chat
Development Platform:
Unix_Linux
- #ifndef __MATT_DATATYPE__
- #define __MATT_DATATYPE__
- #ifdef UNIX
- #include <unistd.h>
- #endif
- typedef unsigned long DWORD;
- typedef unsigned short WORD;
- typedef unsigned char BYTE;
- typedef signed long S_DWORD;
- typedef signed short S_WORD;
- typedef signed char S_BYTE;
- typedef signed long INT32;
- typedef signed short INT16;
- typedef signed char INT8;
- typedef unsigned long U_INT32;
- typedef unsigned short U_INT16;
- typedef unsigned char U_INT8;
- #ifdef _WIN32
- typedef int FD_T;
- typedef int SOK_T;
- typedef unsigned int ssize_t;
- typedef int BOOL;
- #define sockread(s,p,l) recv(s,(char *) p,l,0)
- /* use SOCKWRITE !!!!! */
- #define sockwrite(s,p,l) send(s,(char *) p,l,0)
- #define SOCKCLOSE( s ) closesocket(s)
- #define strcasecmp(s,s1) stricmp(s,s1)
- #define strncasecmp(s,s1,l) strnicmp(s,s1,l)
- #define Get_Config_Info() Get_Unix_Config_Info()
- #else
- typedef unsigned char BOOL;
- #endif
- #ifdef UNIX
- #define sockread(s,p,l) read(s,p,l)
- /* use SOCKWRITE !!!!! */
- #define sockwrite(s,p,l) write(s,p,l)
- #define SOCKCLOSE( s ) close(s)
- #define Get_Config_Info() Get_Unix_Config_Info()
- typedef int FD_T;
- typedef int SOK_T;
- #endif /* UNIX */
- #ifndef TRUE
- #define TRUE 1
- #endif
- #ifndef FALSE
- #define FALSE 0
- #endif
- #endif /* Matt's datatype */