Diff for /parser3/src/lib/smtp/smtp.h between versions 1.5 and 1.16

version 1.5, 2004/02/27 10:32:45 version 1.16, 2023/09/26 20:49:09
Line 1 Line 1
 /** @file  /** @file
         Parser: SMTP sender decl.          Parser: SMTP sender decl.
   
         Copyright (c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com)          Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com)
         Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)          Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru>
 */  */
   
 static const char * const IDENT_SMTP_H="$Date$";  #define IDENT_SMTP_H "$Id$"
   
   
 #include "pa_string.h"  #include "pa_string.h"
   
 #ifdef CYGWIN  #ifdef _MSC_VER
 #define _GNU_H_WINDOWS32_SOCKETS  
 // for PASCAL  
 #include <windows.h>  #include <windows.h>
 // SOCKET  
 typedef u_int   SOCKET;  #else //_MSC_VER
 int PASCAL closesocket(SOCKET);  
 #else  typedef char CHAR;
 #       if defined(WIN32)  typedef u_int SOCKET;
 #               include <windows.h>  #define closesocket close
 #       else  inline int WSAGetLastError() { return errno; }
                 typedef char    CHAR;  
                 typedef u_int   SOCKET;  
 #               define closesocket close  
                 inline int WSAGetLastError() { return errno; }  
   
 #ifdef EPROTONOSUPPORT  #ifdef EPROTONOSUPPORT
 #               define WSAEPROTONOSUPPORT EPROTONOSUPPORT  #       define WSAEPROTONOSUPPORT EPROTONOSUPPORT
 #else  #else
 #               define WSAEPROTONOSUPPORT (10000)  #       define WSAEPROTONOSUPPORT (10000)
 #endif  #endif
   
 #ifdef ESOCKTNOSUPPORT  #ifdef ESOCKTNOSUPPORT
 #               define WSAESOCKTNOSUPPORT ESOCKTNOSUPPORT  #       define WSAESOCKTNOSUPPORT ESOCKTNOSUPPORT
 #else  #else
 #               define WSAESOCKTNOSUPPORT (10001)  #       define WSAESOCKTNOSUPPORT (10001)
 #endif  #endif
   
 #ifdef ENOTCONN  #ifdef ENOTCONN
 #               define WSAENOTCONN ENOTCONN  #       define WSAENOTCONN ENOTCONN
 #else  #else
 #               define WSAENOTCONN (10002)  #       define WSAENOTCONN (10002)
 #endif  #endif
   
 #ifdef ESHUTDOWN  #ifdef ESHUTDOWN
 #               define WSAENETDOWN ESHUTDOWN  #       define WSAENETDOWN ESHUTDOWN
 #else  #else
 #               define WSAENETDOWN (10003)  #       define WSAENETDOWN (10003)
 #endif  #endif
   
 #ifdef EHOSTUNREACH  #ifdef EHOSTUNREACH
 #               define WSAENETUNREACH EHOSTUNREACH  #       define WSAENETUNREACH EHOSTUNREACH
 #else  #else
 #               define WSAENETUNREACH (10004)  #       define WSAENETUNREACH (10004)
 #endif  #endif
   
 #ifdef ENETRESET  #ifdef ENETRESET
 #               define WSAENETRESET ENETRESET  #       define WSAENETRESET ENETRESET
 #else  #else
 #               define WSAENETRESET (10005)  #       define WSAENETRESET (10005)
 #endif  #endif
   
 #ifdef ECONNABORTED  #ifdef ECONNABORTED
 #               define WSAECONNABORTED ECONNABORTED  #       define WSAECONNABORTED ECONNABORTED
 #else  #else
 #               define WSAECONNABORTED (10006)  #       define WSAECONNABORTED (10006)
 #endif  #endif
   
 #ifdef ECONNRESET  #ifdef ECONNRESET
 #               define WSAECONNRESET ECONNRESET  #       define WSAECONNRESET ECONNRESET
 #else  #else
 #               define WSAECONNRESET (10007)  #       define WSAECONNRESET (10007)
 #endif  #endif
   
 #ifdef EWOULDBLOCK  #ifdef EWOULDBLOCK
 #               define WSAEWOULDBLOCK EWOULDBLOCK  #       define WSAEWOULDBLOCK EWOULDBLOCK
 #else  #else
 #               define WSAEWOULDBLOCK (10008)  #       define WSAEWOULDBLOCK (10008)
 #endif  #endif
   
 #ifdef ECONNREFUSED  #ifdef ECONNREFUSED
 #               define WSAECONNREFUSED ECONNREFUSED  #       define WSAECONNREFUSED ECONNREFUSED
 #else  #else
 #               define WSAECONNREFUSED (10009)  #       define WSAECONNREFUSED (10009)
 #endif  #endif
 #               define WSAHOST_NOT_FOUND (10010)  
   
 #               ifndef INADDR_NONE  #define WSAHOST_NOT_FOUND (10010)
 #                       define INADDR_NONE ((unsigned long) -1)  
 #               endif  
   
 #               ifndef INVALID_SOCKET  #ifndef INADDR_NONE
 #                       define INVALID_SOCKET  (SOCKET)(~0)  #       define INADDR_NONE ((unsigned long) -1)
 #               endif  
 #       endif  
 #endif  #endif
   
   #ifndef INVALID_SOCKET
   #       define INVALID_SOCKET (SOCKET)(~0)
   #endif
   
   #endif //_MSC_VER
   
 //////////////////////////////////////////////////////////////////////////////  //////////////////////////////////////////////////////////////////////////////
   
 #define SOCKET_BUFFER_SIZE      512  #define SOCKET_BUFFER_SIZE      512

Removed from v.1.5  
changed lines
  Added in v.1.16


E-mail: