bool Connect(const string&in host, uint16 port, bool secure = false)
Start a connection to the given host and port. This is non-blocking and will immediately return. Use IsReady() to wait for the connection to be ready.
string host
The host to connect to. This can either be a hostname or an IP address.
uint16 port
The port to connect to.
bool secure
Whether to connect securely using TLS. This will validate the server certificate is valid for host.
bool