--- parser3/src/main/pa_socks.C 2001/06/28 07:41:59 1.4 +++ parser3/src/main/pa_socks.C 2002/02/08 08:30:16 1.13 @@ -1,33 +1,20 @@ /** @file Parser: socks initialization/finalization. - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) - Author: Alexander Petrosyan (http://design.ru/paf) - - $Id: pa_socks.C,v 1.4 2001/06/28 07:41:59 parser Exp $ + $Id: pa_socks.C,v 1.13 2002/02/08 08:30:16 paf Exp $ */ -static char *RCSId="$Id: pa_socks.C,v 1.4 2001/06/28 07:41:59 parser Exp $"; #define NO_UNISTD_H #include "pa_config_includes.h" -#ifdef WIN32 -#include -#else -//#include -//#include -//#include -//#include -#endif - -#include "pa_socks.h" +#ifndef HAVE_SYS_SELECT_H #include "pa_exception.h" +#include "pa_socks.h" - -/* ************************ Common stuff *********************** */ - -#ifdef WIN32 +#include WSADATA wsaData; @@ -40,7 +27,7 @@ void init_socks(Pool& pool) { if ( err != 0 ) { /* Tell the user that we could not find a usable */ /* WinSock DLL. */ - PTHROW(0, 0, + throw Exception(0, 0, 0, "can not WSAStartup, err=%d", err); @@ -62,6 +49,8 @@ void done_socks() { #else +#include "pa_pool.h" + void init_socks(Pool& pool) {} void done_socks() {}