ENet Class Library for C#

Peer.SetPingInterval Method

Sets the interval between pings. ENet will automatically send pings when it hasn't received anything from the remote computer.

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

Parameters

interval
The interval in milliseconds between pings, or 0 to use the default (500).

Exceptions

Exception Type Condition
ArgumentOutOfRangeException interval is negative.
InvalidOperationException The peer is not initialized.
NotSupportedException This method requires ENet 1.3.4 or newer.

See Also

Peer Class | ENet Namespace