SocketAddr_t Struct Reference
[Host Lookup]

Stores an IPv4 or IPv6 socket address. More...

#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.


Detailed Description

Stores an IPv4 or IPv6 socket address.

To obtain the family of the socket address, use addr.sa_family.

Definition at line 117 of file hostlookup.h.


Field Documentation

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().


The documentation for this struct was generated from the following file:
Generated on Mon May 28 04:41:44 2007 for Retro Tank Super Attack by  doxygen 1.5.2