• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

SocketIncludes.h

Go to the documentation of this file.
00001 // All this crap just to include type SOCKET
00002 
00003 #if defined(_XBOX) || defined(X360)
00004                                                     
00005 #elif defined(_PS3) || defined(__PS3__) || defined(SN_TARGET_PS3)
00006                                                                               
00007 #elif defined(_WIN32)
00008 typedef int socklen_t;
00009 // IP_DONTFRAGMENT is different between winsock 1 and winsock 2.  Therefore, Winsock2.h must be linked againt Ws2_32.lib
00010 // winsock.h must be linked against WSock32.lib.  If these two are mixed up the flag won't work correctly
00011 #include <winsock2.h>
00012 #else
00013 #define closesocket close
00014 #include <unistd.h>
00015 #include <sys/types.h>
00016 #include <sys/socket.h>
00017 #include <netinet/in.h>
00018 #include <arpa/inet.h>
00019 #include <netdb.h>
00020 #include <unistd.h>
00021 #include <fcntl.h>
00022 #define INVALID_SOCKET -1
00023 //#include "RakMemoryOverride.h"
00025 typedef int SOCKET;
00026 #endif

Generated on Thu Sep 30 2010 01:27:28 for RakNet by  doxygen 1.7.1