ENet Class Library for C#

Peer.DisconnectLater Method

Gracefully disconnects from the remote computer after all outgoing data has been sent. A disconnect event occurs.

[Visual Basic]
Public Sub DisconnectLater( _
   ByVal data As Integer _
)
[C#]
public void DisconnectLater(
   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