Connect
This function connects to a server with the specified IP address and port. The connection does not complete until a Connected message is received from a call to the Update() function.
Syntax
- Peer* Connect(const std::string& address, const int port=8888)
Parameters
- address: IP address of the server. Use "127.0.0.1" to connect to a server on your own computer.
- port: port to connect on.
Returns
Returns a Peer object representing the server if the connection was successfully initialized, otherwise false is returned.