#include <sys\socket.h>
struct sockaddr
{
u_short sa_family; /* address family */
char sa_date[14]; /* protocol specific information */
};
#include <netinet\in.h>
struct in_addr
{
u_long s_addr; /* 32 bit host address, network byte order */
};
struct sockaddr_in
{
short sin_family; /* AF_INET family */
u_short sin_port; /* 16 bit port number */
struct in_addr sin_addr; /* 32 bit host address */
char sin_zero[8]; /* set to zero, not used */
};
#include <netdb.h>

struct  hostent 
{
  char *h_name;
  char **h_aliases;
  int h_addrtype;
  int h_length;
  char **h_addr_list;
  #define h_addr h_addr_list[0]
};