Back to index

php5  5.3.10
sendmail_nw.h
Go to the documentation of this file.
00001 
00002 #define closesocket close
00003 #define LPCSTR char *
00004 #define LPSTR char*
00005 #define FAR
00006 #ifdef USE_WINSOCK
00007 #include <novsock2.h>
00008 #else
00009 #include <sys/socket.h>     /* For struct sockaddr, 'PF_INET' and 'AF_INET' */
00010 #include <netinet/in.h>     /* For struct sockaddr_in */
00011 #include <netdb.h>          /* For struct hostent */
00012 #endif /* USE_WINSOCK */
00013 
00014 typedef int SOCKET;  /* Borrowed from winsock\novsock2.h */
00015 typedef struct sockaddr_in SOCKADDR_IN;
00016 typedef struct sockaddr * LPSOCKADDR;
00017 typedef struct hostent * LPHOSTENT;
00018 
00019 #define INVALID_SOCKET  (SOCKET)(~0)      /* Borrowed from winsock\novsock2.h */