SocketIncludes.h

Go to the documentation of this file.
00001 
00014 // SocketInc.h -- platform specific header
00015 
00016 #ifndef SOCKETINC_H_
00017 #define SOCKETINC_H_
00018 
00019 #ifdef _MSC_VER
00020 #pragma once
00021 #endif // MSVC
00022 
00023 
00025 // Microsoft Windows specific information
00026 
00027 #ifdef WIN32
00028 
00029 #define WIN32_LEAN_AND_MEAN
00030 
00031 #include <winsock2.h>
00032 
00033 
00035 // Disable unavoidable warning messages:
00036 
00037 //  4114: same type qualifier used more than once
00038 //  4201: nonstandard extension used : nameless struct/union
00039 //  4237: "keyword" reserved for future use
00040 //  4251: class needs to have dll-interface to export class
00041 //  4275: non DLL-interface class used as base for DLL-interface class
00042 //  4290: C++ Exception Specification ignored
00043 //  4786: string too long - truncated to 255 characters
00044 
00045 #pragma warning(disable : 4114 4201 4237 4251 4275 4290 4335 4786)
00046 
00047 // Winsock library
00048 #pragma comment(lib,"Ws2_32.lib")
00049 
00050 #else
00051 
00052 // GNU Linux
00053 #include <sys/types.h>
00054 #include <sys/socket.h>
00055 #include <arpa/inet.h>
00056 #include <netinet/in.h>
00057 #include <netdb.h>
00058 
00059 #define SOCKET  int
00060 #define closesocket     close
00061 
00062 #endif // WIN32
00063 #endif // SOCKETINC_H_

Generated on Tue Mar 28 09:10:15 2006 for Simple SOAP by  doxygen 1.4.6