ENet Class Library for C#

Host.SetBandwidthLimit Method

Set the bandwidth limit.

[Visual Basic]
Public Sub SetBandwidthLimit( _
   ByVal incomingBandwidth As Integer, _
   ByVal outgoingBandwidth As Integer _
)
[C#]
public void SetBandwidthLimit(
   int incomingBandwidth,
   int outgoingBandwidth
);

Parameters

incomingBandwidth
The maximum incoming rate of transfer, or 0 for no limit.
outgoingBandwidth
The maximum outgoing rate of transfer, or 0 for no limit.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException incomingBandwidth is less than 0, and/or outgoingBandwidth is less than 0.
InvalidOperationException The host is not initialized.

See Also

Host Class | ENet Namespace