Connects to a remote computer at the given host and port.
The new peer. This method does not block: the connection will be established when you receive a Connect event.
|ArgumentNullException||hostName is null.|
|ArgumentException||hostName is invalid.|
|ArgumentOutOfRangeException||hostName is too long, port is less than 0 or greater than 65535, and/or channelLimit is less than 0 or greater than 255.|
|InvalidOperationException||The host is not initialized.|
|SocketException||Host name lookup failed, or no IPv4 hosts were available.|
|ENetException||An error occured.|