IN_ADDR

This structure is the IP address component of the SOCKADDR_IN structure. It is in big-endian network byte order.

At a Glance

Header file: Winsock.h
Windows CE versions: 1.0 and later

Syntax

typedef struct in_addr {
union {
  struct{
  unsigned char s_b1,
   s_b2,
   s_b3,
   s_b4;
   } S_un_b;
  struct {
unsigned short s_w1,
   s_w2;
   } S_un_w;
    unsigned long S_addr;
  } S_un;
} IN_ADDR;

See Also

SOCKADDR_IN