diff --git a/Facepunch.Steamworks/Interfaces/Networking.cs b/Facepunch.Steamworks/Interfaces/Networking.cs index f48fefd..ee8bca2 100644 --- a/Facepunch.Steamworks/Interfaces/Networking.cs +++ b/Facepunch.Steamworks/Interfaces/Networking.cs @@ -186,5 +186,14 @@ private unsafe bool ReadP2PPacket( int channel ) return true; } } + + /// + /// This should be called when you're done communicating with a user, as this will free up all of the resources allocated for the connection under-the-hood. + /// If the remote user tries to send data to you again, a new onP2PConnectionRequest callback will be posted. + /// + public bool CloseSession( ulong steamId ) + { + return networking.CloseP2PSessionWithUser( steamId ); + } } }