--- parser3/src/classes/smtp/Attic/comms.C 2001/04/10 06:57:23 1.2 +++ parser3/src/classes/smtp/Attic/comms.C 2003/11/20 16:34:24 1.14 @@ -1,20 +1,18 @@ /** @file Parser: SMTP sender impl. - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - - Author: Alexander Petrosyan (http://design.ru/paf) - - $Id: comms.C,v 1.2 2001/04/10 06:57:23 paf Exp $ + Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) */ -#include +static const char * const IDENT_COMMS_C="$Date: 2003/11/20 16:34:24 $"; #include "smtp.h" +#include // --------------------------------------------------------------------------- int SMTP:: -IsAddressARawIpaddress(const char * string) +IsAddressARawIpaddress(const char* string) { while( *string ) { @@ -29,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; @@ -38,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 ) {