--- parser3/src/classes/smtp/Attic/smtp.h 2003/01/31 12:34:29 1.11.2.1 +++ parser3/src/classes/smtp/Attic/smtp.h 2003/11/20 15:35:30 1.13 @@ -5,9 +5,9 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_SMTP_H="$Date: 2003/01/31 12:34:29 $"; +static const char* IDENT_SMTP_H="$Date: 2003/11/20 15:35:30 $"; + -#include "pa_pool.h" #include "pa_string.h" #include @@ -26,7 +26,7 @@ static const char* IDENT_SMTP_H="$Date: ////////////////////////////////////////////////////////////////////////////// /// SIMPLE MAIL TRANSPORT PROTOCOL Win32 realization -class SMTP : public Pooled { +class SMTP: public PA_Object { char *in_buffer; char *out_buffer; unsigned int in_index; @@ -55,10 +55,9 @@ class SMTP : public Pooled { CHAR HomePage[100]; CHAR text[500]; - const String& origin_string; - public: - SMTP(Pool& pool, const String& aorigin_string); + SMTP(); + override ~SMTP(); // smtp.C void Send(const char* , const char* , const char* , char *, char *); @@ -79,10 +78,9 @@ public: // comms.C int IsAddressARawIpaddress(const char* ); - int ResolveService(const char* , int *); + int ResolveService(const char* , u_short *); int ResolveHostname(const char* , struct sockaddr_in *); int GetAndSetTheSocket(SOCKET *); int GetConnection(SOCKET, struct sockaddr_in *); void MiscSocketSetup(SOCKET, fd_set *, struct timeval *); }; -