MessageMgr::StringToAddress
Defined in:
Reads a network address from a text string.
C4Messages.h
Prototype
static NetworkAddress StringToAddress(const char *text);
Parameters
text |
A pointer to the text string to interpret. |
Description
The StringToAddress
function interprets the string given by the text
parameter and constructs a NetworkAddress
object that holds the corresponding numerical address. The StringToAddress
function recognizes text strings of the form ip1.ip2.ip3.ip4:port
. If the port component is not present, then the port number in the returned address is set to zero.
See Also