Facepunch.Steamworks Wiki

Steamworks.Data.Connection.Close

Syntax

bool Close( bool linger = False, int reasonCode = 0, string debugString = "Closing Connection" )

Description

Disconnects from the remote host and invalidates the connection handle. Any unread data on the connection is discarded.. reasonCode is defined and used by you.

Arguments

bool linger False
int reasonCode 0
string debugString "Closing Connection"

Returns

bool