BioInt
1.02.00
BioInt: An integrative biological object-oriented application framework and interpreter
|
00001 #ifndef BIOSOCKETPRIVATE_H 00002 #define BIOSOCKETPRIVATE_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 // *nix 00019 #include <sys/select.h> 00020 00021 00022 #define GET_LAST_ERROR errno 00023 #define closesocket(x) close(x) 00024 #define ioctlsocket(x, y, z) ioctl(x, y, z) 00025 00026 00027 #endif 00028 00029 #endif