X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=octopi%2Flibrary%2Fsockets%2Ftcpip_stack.cpp;h=37fcb2d5418d59230cd96419e56fb4985e49dbfe;hb=de0da7f2f7958d4ba652ff2ef5c79991700141ac;hp=7c95dd40b8563068d454f69b8ede6eb96addd5a1;hpb=b557bfd6995f4ad4899cf9065c8a7d5d44d30f03;p=feisty_meow.git diff --git a/octopi/library/sockets/tcpip_stack.cpp b/octopi/library/sockets/tcpip_stack.cpp index 7c95dd40..37fcb2d5 100644 --- a/octopi/library/sockets/tcpip_stack.cpp +++ b/octopi/library/sockets/tcpip_stack.cpp @@ -19,7 +19,7 @@ #include #include -#ifdef __UNIX__ +//#ifdef __UNIX__ #include #include #include @@ -30,7 +30,7 @@ #include #include #include -#endif +//#endif using namespace basis; using namespace loggers; @@ -39,7 +39,7 @@ using namespace textual; namespace sockets { -#define DEBUG_TCPIP_STACK +//#define DEBUG_TCPIP_STACK // turn on for clamor. #undef LOG @@ -47,10 +47,12 @@ namespace sockets { ////////////// + /* #ifdef __WIN32__ const WORD WINSOCK_VERSION_REQUIRED = 0x0101; // 1.1 version is used by this version of tcp/ip transport. #endif +*/ ////////////// @@ -87,6 +89,7 @@ tcpip_stack::~tcpip_stack() bool tcpip_stack::initialize_tcpip() { + /* #ifdef __WIN32__ FUNCDEF("initialize_tcpip"); // make sure we have the right version of WinSock available. @@ -98,14 +101,15 @@ bool tcpip_stack::initialize_tcpip() return false; } #endif +*/ return true; } void tcpip_stack::deinitialize_tcpip() { -#ifdef __WIN32__ +/*#ifdef __WIN32__ WSACleanup(); -#endif +#endif*/ } astring tcpip_stack::hostname() const @@ -168,7 +172,7 @@ astring tcpip_stack::tcpip_error_name(int error_value) case SOCK_EDQUOT: return "EDQUOT"; case SOCK_ESTALE: return "ESTALE"; case SOCK_EREMOTE: return "EREMOTE"; -#ifdef __WIN32__ +/* #ifdef __WIN32__ case SOCK_EPROCLIM: return "EPROCLIM"; case SOCK_SYSNOTREADY: return "SYSNOTREADY"; case SOCK_VERNOTSUPPORTED: return "VERNOTSUPPORTED"; @@ -178,6 +182,7 @@ astring tcpip_stack::tcpip_error_name(int error_value) case SOCK_NO_DATA: return "NO_DATA"; // or NO_ADDRESS. case SOCK_NOTINITIALISED: return "NOTINITIALISED"; #endif +*/ } // return a standard OS error...