Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: BEFORE_ARG_INFO
Fetching contributors…

Cannot retrieve contributors at this time

file 17 lines (14 sloc) 0.546 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

#ifdef USE_WINSOCK
/*#include <ws2nlm.h>*/
#include <novsock2.h>
#else
#include <sys/socket.h> /* For struct sockaddr, 'PF_INET' and 'AF_INET' */
#include <netinet\in.h> /* For struct sockaddr_in */
#include <netdb.h> /* For struct hostent */
/*#include <ws2name.h>*/
#endif /* USE_WINSOCK */

typedef int SOCKET; /* Borrowed from winsock\novsock2.h */
typedef struct sockaddr_in SOCKADDR_IN;
typedef struct sockaddr * LPSOCKADDR;
typedef struct hostent * LPHOSTENT;

#define INVALID_SOCKET (SOCKET)(~0) /* Borrowed from winsock\novsock2.h */
Something went wrong with that request. Please try again.