Поделиться через


IPAddr (Compact 2013)

3/26/2014

This structure represents a host by its Internet address.

Note

The IPAddr structure has the same syntax and usage as the Windows Sockets in_addr structure, and is interchangeable with in_add.r

Syntax

typedef struct {
  union {
    struct {
      u_char s_b1,s_b2,s_b3,s_b4;
    } S_un_b;
    struct {
      u_short s_w1,s_w2;
    } S_un_w;
    u_long S_addr;
  } S_un;
} IPAddr;

Members

  • S_un

    • S_un_b
      Address of the host formatted as four u_chars.
    • S_un_w
      Address of the host formatted as two u_shorts.
    • S_addr
      Address of the host formatted as a u_long.

See Also

Reference

IP Helper Structures
in_addr
SendARP
AddIPAddress
GetBestInterface
GetRTTAndHopCount
IcmpSendEcho2
IcmpSendEcho
ARP_SEND_REPLY
ICMP_ECHO_REPLY
IP_UNIDIRECTIONAL_ADAPTER_ADDRESS