sockcommon-private.h

00001 #ifndef SOCKCOMMON_PRIVATE_H
00002 #define SOCKCOMMON_PRIVATE_H
00003 
00004 // This is a private header, as the name suggests.
00005 
00006 #ifdef HAVE_CONFIG_H
00007 # include "config.h"
00008 #endif
00009 
00010 
00011 #ifdef WIN32
00012 
00013 #include <winsock2.h>
00014 #define GET_LAST_ERROR        WSAGetLastError()
00015 typedef int     socklen_t;
00016 #else
00017 
00018 
00019 
00020 // *nix
00021 
00022 #include <sys/select.h>
00023 
00024 
00025 #define GET_LAST_ERROR        errno
00026 #define closesocket(x)          close(x)
00027 #define ioctlsocket(x, y, z)    ioctl(x, y, z)
00028 
00029 
00030 #endif
00031 
00032 
00033 
00034 #endif

Generated on Thu Jan 18 19:26:35 2007 for socklib++ by  doxygen 1.5.1