Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

os_spec.cpp

Go to the documentation of this file.
00001 #include "headers.h"
00002 
00003 #ifdef WIN32
00004 
00005 int initSockets() {
00006         WSADATA wsaData;
00007     //WORD wVersionRequested;
00008     
00009     //wVersionRequested = MAKEWORD(REQUESTED_SOCKET_VERSION); 
00010  
00011         if(WSAStartup( 0x0202, &wsaData ) != 0) { // Confirm Winsock Supports 2.2
00012     //if (WSAStartup(wVersionRequested, &wsaData) != 0) {
00013         cout << "WSAStartup Error: " << WSAGetLastError() << "\n";
00014         return false;
00015     }
00016 
00017         return true;
00018 }
00019 
00020 #else 
00021 
00022 #ifndef initSockets
00023 int initSockets() { return true; }
00024 #endif
00025 #endif

Generated at Thu Jul 11 13:31:51 2002 for Peekabooty by doxygen1.2.9 written by Dimitri van Heesch, © 1997-2001