--- parser3/src/lib/smtp/comms.C 2004/03/01 09:14:15 1.5 +++ parser3/src/lib/smtp/comms.C 2004/12/10 08:37:53 1.7 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_COMMS_C="$Date: 2004/03/01 09:14:15 $"; +static const char * const IDENT_COMMS_C="$Date: 2004/12/10 08:37:53 $"; #include "smtp.h" @@ -15,7 +15,7 @@ IsAddressARawIpaddress(const char* stri { while( *string ) { - if( !isdigit(*string) ) + if( !isdigit((unsigned char)*string) ) { return 0; } @@ -107,15 +107,10 @@ GetAndSetTheSocket(SOCKET *the_socket) return WSAESOCKTNOSUPPORT; } -#ifdef SO_DONTLINGER - int dont_linger = 0; - setsockopt(*the_socket, SOL_SOCKET, SO_DONTLINGER, (const char *)&dont_linger, sizeof(dont_linger)); -#else // To enable SO_DONTLINGER (that is, disable SO_LINGER) // l_onoff should be set to zero and setsockopt should be called linger dont_linger={0,0}; setsockopt(*the_socket, SOL_SOCKET, SO_LINGER, (const char *)&dont_linger, sizeof(dont_linger)); -#endif return 0; }