Diff for /parser3/src/main/pa_socks.C between versions 1.5 and 1.18.2.1

version 1.5, 2001/06/28 07:44:17 version 1.18.2.1, 2003/01/28 12:11:50
Line 1 Line 1
 /**     @file  /**     @file
         Parser: socks initialization/finalization.          Parser: socks initialization/finalization.
   
         Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)          Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com)
           Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
         Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)  
 */  */
 static const char *RCSId="$Id$";   
   static const char* IDENT_SOCKS_C="$Date$";
   
 #define NO_UNISTD_H  #define NO_UNISTD_H
 #include "pa_config_includes.h"  #include "pa_config_includes.h"
   
 #ifdef WIN32  #ifdef HAVE_WINSOCK_H
 #include <winsock.h>  
 #else  
 //#include <netinet/tcp.h>  
 //#include <arpa/nameser.h>  
 //#include <netdb.h>  
 //#include <signal.h>  
 #endif  
   
 #include "pa_socks.h"  
 #include "pa_exception.h"  #include "pa_exception.h"
   #include "pa_socks.h"
   
   #include <winsock.h>
 /* ************************ Common stuff *********************** */  
   
 #ifdef WIN32  
   
 WSADATA wsaData;  WSADATA wsaData;
   
 void init_socks(Pool& pool) {  void pa_init_socks() {
         WORD wVersionRequested;          WORD wVersionRequested;
         int err;           int err; 
         wVersionRequested = MAKEWORD( 1, 1 );           wVersionRequested = MAKEWORD( 1, 1 ); 
Line 38  void init_socks(Pool& pool) { Line 27  void init_socks(Pool& pool) {
         if ( err != 0 ) {          if ( err != 0 ) {
             /* Tell the user that we could not find a usable */              /* Tell the user that we could not find a usable */
                 /* WinSock DLL.                                  */                      /* WinSock DLL.                                  */    
                 PTHROW(0, 0,                  throw Exception(0,
                         0,                          Exception::undefined_source,
                         "can not WSAStartup, err=%d",                           "can not WSAStartup, err=%d", 
                                 err);                                  err);
         }           } 
 }  }
   
 void done_socks() {  void pa_done_socks() {
         /* Confirm that the WinSock DLL supports 2.2.*/          /* Confirm that the WinSock DLL supports 2.2.*/
         /* Note that if the DLL supports versions greater    */          /* Note that if the DLL supports versions greater    */
         /* than 2.2 in addition to 2.2, it will still return */          /* than 2.2 in addition to 2.2, it will still return */
Line 60  void done_socks() { Line 49  void done_socks() {
   
 #else  #else
   
 void init_socks(Pool& pool) {}  void pa_init_socks() {}
 void done_socks() {}  void pa_done_socks() {}
   
 #endif  #endif

Removed from v.1.5  
changed lines
  Added in v.1.18.2.1


E-mail: