#include <hostlookup.h>
Data Fields | |
union { | |
sockaddr addr | |
The generic socket address. | |
sockaddr_in ipv4 | |
The IPv4 socket address. | |
sockaddr_in6 ipv6 | |
The IPv6 socket address. | |
}; | |
socklen_t | length |
The length of the socket address structure that is in use. | |
Related Functions | |
(Note that these are not member functions.) | |
EqualAddresses(sa1, sa2) | |
True if two addresses, sans port, are equal. |
To obtain the family of the socket address, use addr.sa_family.
Definition at line 117 of file hostlookup.h.
union { ... } |
struct sockaddr SocketAddr_t::addr [read] |
The generic socket address.
Definition at line 130 of file hostlookup.h.
Referenced by ClientSync(), ConfigIPv4Broadcast(), FailConnAccept(), GetSamples(), NetStatUpdate(), ReceiveMessages(), Send(), SendAck(), and ServerTimeSyncThread().
struct sockaddr_in SocketAddr_t::ipv4 [read] |
The IPv4 socket address.
Definition at line 122 of file hostlookup.h.
Referenced by ClientSync(), ConfigIPv4Broadcast(), DiscoverConnectServer(), DoNameLookup(), NetStatUpdate(), Send(), ServerTimeSyncThread(), and StartServerTimeSync().
struct sockaddr_in6 SocketAddr_t::ipv6 [read] |
The IPv6 socket address.
Definition at line 126 of file hostlookup.h.
Referenced by ClientSync(), DoNameLookup(), NetStatUpdate(), and ServerTimeSyncThread().
socklen_t SocketAddr_t::length |
The length of the socket address structure that is in use.
Definition at line 135 of file hostlookup.h.
Referenced by ConfigIPv4Broadcast(), DiscoverConnectServer(), DoNameLookup(), FailConnAccept(), GetSamples(), ReceiveMessages(), Send(), SendAck(), SendConnectMsg(), and ServerTimeSyncThread().