C4 Engine
C4 Engine API Documentation

MessageMgr::StringToAddress

Defined in:  C4Messages.h
Reads a network address from a text string.
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

MessageMgr::AddressToString

NetworkAddress