CMS 3D CMS Logo

InetSocket.h

Go to the documentation of this file.
00001 #ifndef CLASSLIB_SYSAPI_INET_SOCKET_H
00002 # define CLASSLIB_SYSAPI_INET_SOCKET_H
00003 
00004 //<<<<<< INCLUDES                                                       >>>>>>
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 //<<<<<< PUBLIC DEFINES                                                 >>>>>>
00022 
00023 // FIXME: h_errno vs. errno?
00024 
00025 #ifdef _WIN32
00026 # define ERRNO                  WSAGetLastError()
00027 #else
00028 # define ERRNO                  errno
00029 #endif
00030 
00031 //<<<<<< PUBLIC CONSTANTS                                               >>>>>>
00032 //<<<<<< PUBLIC TYPES                                                   >>>>>>
00033 //<<<<<< PUBLIC VARIABLES                                               >>>>>>
00034 //<<<<<< PUBLIC FUNCTIONS                                               >>>>>>
00035 //<<<<<< CLASS DECLARATIONS                                             >>>>>>
00036 //<<<<<< INLINE PUBLIC FUNCTIONS                                        >>>>>>
00037 //<<<<<< INLINE MEMBER FUNCTIONS                                        >>>>>>
00038 
00039 #endif // CLASSLIB_SYSAPI_INET_SOCKET_H

Generated on Tue Jun 9 17:38:51 2009 for CMSSW by  doxygen 1.5.4