Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef __SP_NETWORK_CORE_H__
00009 #define __SP_NETWORK_CORE_H__
00010
00011
00012 #include "Base/spStandard.hpp"
00013
00014 #ifdef SP_COMPILE_WITH_NETWORKSYSTEM
00015
00016
00017 #include "Framework/Network/spNetworkStructures.hpp"
00018
00019
00020 #if defined(SP_PLATFORM_WINDOWS)
00021 # if defined(SP_COMPILER_GCC)
00022 # include <unistd.h>
00023 # include <winsock2.h>
00024 # include <ws2tcpip.h>
00025 # elif defined(SP_COMPILER_VC)
00026 # include <windows.h>
00027 # include <process.h>
00028 # endif
00029 # include <lmserver.h>
00030 #elif defined(SP_PLATFORM_LINUX)
00031 # include <sys/types.h>
00032 # include <sys/socket.h>
00033 # include <sys/select.h>
00034 # include <netinet/in.h>
00035 # include <arpa/inet.h>
00036 # include <netdb.h>
00037 # include <unistd.h>
00038 #endif
00039
00040 #include <map>
00041 #include <vector>
00042
00043 #if defined(SP_PLATFORM_LINUX)
00044 # ifndef SOCKET
00045 # define SOCKET int
00046 # endif
00047 # ifndef INVALID_SOCKET
00048 # define INVALID_SOCKET -1
00049 # endif
00050 # ifndef SOCKET_ERROR
00051 # define SOCKET_ERROR -1
00052 # endif
00053 #endif
00054
00055
00056 #endif
00057
00058 #endif
00059
00060
00061
00062