Added Networking.CloseSession

This commit is contained in:
Garry Newman 2018-02-15 13:46:01 +00:00
parent 3895fd33aa
commit 42d47a14c7

View File

@ -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 );
}
}
}