--- parser3/src/lib/smtp/smtp.h 2004/02/25 11:14:22 1.4 +++ parser3/src/lib/smtp/smtp.h 2006/04/09 13:38:47 1.7 @@ -1,11 +1,11 @@ /** @file Parser: SMTP sender decl. - Copyright (c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_SMTP_H="$Date: 2004/02/25 11:14:22 $"; +static const char * const IDENT_SMTP_H="$Date: 2006/04/09 13:38:47 $"; #include "pa_string.h" @@ -19,6 +19,7 @@ typedef u_int SOCKET; int PASCAL closesocket(SOCKET); #else # if defined(WIN32) +# define WINVER 0x0400 # include # else typedef char CHAR; @@ -97,7 +98,8 @@ int PASCAL closesocket(SOCKET); #define ERR_CLOSING 4012 #define WAIT_A_BIT 4013 -#define MAXOUTLINE 255 +/// must be >=SOCKET_BUFFER_SIZE, thanks to Lev Walkin for pointing that out +#define MAXOUTLINE (SOCKET_BUFFER_SIZE*2) //////////////////////////////////////////////////////////////////////////////