mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +03:00
Added Networking.CloseSession
This commit is contained in:
parent
3895fd33aa
commit
42d47a14c7
@ -186,5 +186,14 @@ private unsafe bool ReadP2PPacket( int channel )
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
public bool CloseSession( ulong steamId )
|
||||
{
|
||||
return networking.CloseP2PSessionWithUser( steamId );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user