00001 #ifndef CLASSLIB_SYSAPI_INET_SOCKET_H
00002 # define CLASSLIB_SYSAPI_INET_SOCKET_H
00003
00004
00005
00006 # include "classlib/sysapi/system.h"
00007 # ifdef _WIN32
00008 # include <windows.h>
00009 # else
00010 # include <sys/socket.h>
00011 # include <netinet/in.h>
00012 # include <netdb.h>
00013 # include <unistd.h>
00014 # include <arpa/inet.h>
00015 # include <cerrno>
00016 # endif
00017
00018 # include <cstring>
00019 # include <cctype>
00020
00021
00022
00023
00024
00025 #ifdef _WIN32
00026 # define ERRNO WSAGetLastError()
00027 #else
00028 # define ERRNO errno
00029 #endif
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #endif // CLASSLIB_SYSAPI_INET_SOCKET_H