class NetworkAddress
Defined in:
The C4Network.h
NetworkAddress
class Encapsulates a socket address.
Definition
class NetworkAddress
Member Functions
NetworkAddress::Set |
Sets the IP address and port number. |
NetworkAddress::GetAddress |
Returns the 32-bit IP address. |
NetworkAddress::GetPort |
Returns the 16-bit port number. |
NetworkAddress::SetPort |
Sets the 16-bit port number. |
Overloaded Operators
NetworkAddress& operator =(const NetworkAddress& na); |
Standard assignment operator. |
bool operator ==(const NetworkAddress& na) const; |
Standard equality operator. |
bool operator !=(const NetworkAddress& na) const; |
Standard inequality operator. |
Constructor
NetworkAddress();
explicit NetworkAddress(uint32 addr, uint16 pt = 0);
Parameters
addr |
The 32-bit IP address. |
pt |
The 16-bit port number. |
Description
The NetworkAddress
class holds the 32-bit IP address and 16-bit port number corresponding to a communications endpoint on the internet. The default constructor fills these address components with zeros.
See Also