Initialize a host that will accept connections on any IP address.
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | port is less than 0 or greater than 65535, and/or peerLimit is less than 0 or greater than 4095. |
InvalidOperationException | The host is already initialized. |
ENetException | Failed to initialize the host. |