ENet Class Library for C#

Host.SetChannelLimit Method

Set the channel limit.

[Visual Basic]
Public Sub SetChannelLimit( _
   ByVal channelLimit As Integer _
)
[C#]
public void SetChannelLimit(
   int channelLimit
);

Parameters

channelLimit
The maximum number of channels, or 0 to use the maximum possible (255).

Exceptions

Exception Type Condition
InvalidOperationException The host is not initialized.

See Also

Host Class | ENet Namespace