--- parser3/src/classes/smtp/Attic/comms.C 2001/09/21 14:46:09 1.3 +++ parser3/src/classes/smtp/Attic/comms.C 2003/11/20 15:35:30 1.13 @@ -1,19 +1,18 @@ /** @file Parser: SMTP sender impl. - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - - Author: Alexander Petrosyan (http://design.ru/paf) + Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char *RCSId="$Id: comms.C,v 1.3 2001/09/21 14:46:09 parser Exp $"; -#include +static const char* IDENT_COMMS_C="$Date: 2003/11/20 15:35:30 $"; #include "smtp.h" +#include // --------------------------------------------------------------------------- int SMTP:: -IsAddressARawIpaddress(const char * string) +IsAddressARawIpaddress(const char* string) { while( *string ) { @@ -28,7 +27,7 @@ IsAddressARawIpaddress(const char * stri //--------------------------------------------------------------------------- int SMTP:: -ResolveService(const char* service, int *our_port) +ResolveService(const char* service, u_short *our_port) { struct servent FAR *serventry = NULL; int retval = 0; @@ -37,7 +36,7 @@ ResolveService(const char* service, int { char * tail; - *our_port = (int)strtol(service, &tail, 10); + *our_port = (u_short)strtol(service, &tail, 10); if( tail == service ) {