|
|
| version 1.28, 2013/07/21 22:17:13 | version 1.35, 2026/04/25 13:38:46 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: socks initialization/finalization. | Parser: socks initialization/finalization. |
| Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) | Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru> |
| */ | */ |
| volatile const char * IDENT_PA_SOCKS_C="$Id$"; | volatile const char * IDENT_PA_SOCKS_C="$Id$"; |
| Line 26 void pa_socks_init() { | Line 26 void pa_socks_init() { |
| err = WSAStartup( wVersionRequested, &wsaData ); | err = WSAStartup( wVersionRequested, &wsaData ); |
| 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 */ |
| throw Exception(0, 0, "can not WSAStartup, err=%d", err); | throw Exception(0, 0, "cannot WSAStartup, err=%d", err); |
| } | } |
| } | } |