MessageMgr::AddressToString
Defined in: C4Messages.h
Generates a text string corresponding to a network address.
Prototype
static String<31> AddressToString(const NetworkAddress& address, bool includePort = false);
Parameters
address |
The address for which to generate a text string.
|
includePort |
Indicates whether the port number should be included in the text string.
|
Description
The AddressToString function generates a text representation of the network address given by the address parameter. If the includePort parameter is true, then the returned string has the form ip1.ip2.ip3.ip4:port. If includePort is false, then the returned string does not include the port number and has the form ip1.ip2.ip3.ip4.
See Also
MessageMgr::StringToAddress
NetworkAddress
String
|