仔细看看吧!!!in_addr
The Windows Sockets in_addr structure represents a host by its Internet address.struct in_addr {
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;
};Members
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. Requirements
Version: Requires Windows Sockets 2.0.
Header: Declared in Winsock2.h.See Also
inet_addr, inet_ntoa, SOCKADDR
The Windows Sockets in_addr structure represents a host by its Internet address.struct in_addr {
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;
};Members
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. Requirements
Version: Requires Windows Sockets 2.0.
Header: Declared in Winsock2.h.See Also
inet_addr, inet_ntoa, SOCKADDR
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货