ENet Class Library for C#

Peer.Disconnect Method

Gracefully disconnects from the remote computer. A disconnect event occurs.

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

Parameters

data
Data to send along with the disconnect packet.

Exceptions

Exception Type Condition
InvalidOperationException The peer is not initialized.

See Also

Peer Class | ENet Namespace