Diff for /parser3/src/lib/smtp/smtp.h between versions 1.3 and 1.5.14.1

version 1.3, 2004/02/24 10:36:16 version 1.5.14.1, 2005/08/05 13:03:00
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-2005 ArtLebedev Group (http://www.artlebedev.com)
         Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)          Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
 */  */
   
Line 25  int PASCAL closesocket(SOCKET); Line 25  int PASCAL closesocket(SOCKET);
                 typedef u_int   SOCKET;                  typedef u_int   SOCKET;
 #               define closesocket close  #               define closesocket close
                 inline int WSAGetLastError() { return errno; }                  inline int WSAGetLastError() { return errno; }
   
   #ifdef EPROTONOSUPPORT
 #               define WSAEPROTONOSUPPORT EPROTONOSUPPORT  #               define WSAEPROTONOSUPPORT EPROTONOSUPPORT
   #else
   #               define WSAEPROTONOSUPPORT (10000)
   #endif
   #ifdef ESOCKTNOSUPPORT
 #               define WSAESOCKTNOSUPPORT ESOCKTNOSUPPORT  #               define WSAESOCKTNOSUPPORT ESOCKTNOSUPPORT
   #else
   #               define WSAESOCKTNOSUPPORT (10001)
   #endif
   #ifdef ENOTCONN
 #               define WSAENOTCONN ENOTCONN  #               define WSAENOTCONN ENOTCONN
   #else
   #               define WSAENOTCONN (10002)
   #endif
   #ifdef ESHUTDOWN
 #               define WSAENETDOWN ESHUTDOWN  #               define WSAENETDOWN ESHUTDOWN
   #else
   #               define WSAENETDOWN (10003)
   #endif
   #ifdef EHOSTUNREACH
 #               define WSAENETUNREACH EHOSTUNREACH  #               define WSAENETUNREACH EHOSTUNREACH
   #else
   #               define WSAENETUNREACH (10004)
   #endif
   #ifdef ENETRESET
 #               define WSAENETRESET ENETRESET  #               define WSAENETRESET ENETRESET
   #else
   #               define WSAENETRESET (10005)
   #endif
   #ifdef ECONNABORTED
 #               define WSAECONNABORTED ECONNABORTED  #               define WSAECONNABORTED ECONNABORTED
   #else
   #               define WSAECONNABORTED (10006)
   #endif
   #ifdef ECONNRESET
 #               define WSAECONNRESET ECONNRESET  #               define WSAECONNRESET ECONNRESET
   #else
   #               define WSAECONNRESET (10007)
   #endif
   #ifdef EWOULDBLOCK
 #               define WSAEWOULDBLOCK EWOULDBLOCK  #               define WSAEWOULDBLOCK EWOULDBLOCK
   #else
   #               define WSAEWOULDBLOCK (10008)
   #endif
   #ifdef ECONNREFUSED
 #               define WSAECONNREFUSED ECONNREFUSED  #               define WSAECONNREFUSED ECONNREFUSED
   #else
   #               define WSAECONNREFUSED (10009)
   #endif
   #               define WSAHOST_NOT_FOUND (10010)
   
 #               define WSAHOST_NOT_FOUND (2)  
 #               ifndef INADDR_NONE  #               ifndef INADDR_NONE
 #                       define INADDR_NONE ((unsigned long) -1)  #                       define INADDR_NONE ((unsigned long) -1)
 #               endif  #               endif
   
 #               ifndef INVALID_SOCKET  #               ifndef INVALID_SOCKET
 #                       define INVALID_SOCKET  (SOCKET)(~0)  #                       define INVALID_SOCKET  (SOCKET)(~0)
 #               endif  #               endif
Line 55  int PASCAL closesocket(SOCKET); Line 97  int PASCAL closesocket(SOCKET);
 #define ERR_CLOSING                     4012  #define ERR_CLOSING                     4012
 #define WAIT_A_BIT                      4013  #define WAIT_A_BIT                      4013
   
 #define MAXOUTLINE 255  /// must be >=SOCKET_BUFFER_SIZE, thanks to Lev Walkin <vlm@netli.com> for pointing that out
   #define MAXOUTLINE (SOCKET_BUFFER_SIZE*2)
   
 //////////////////////////////////////////////////////////////////////////////  //////////////////////////////////////////////////////////////////////////////
   

Removed from v.1.3  
changed lines
  Added in v.1.5.14.1


E-mail: