private void OnRequestClose(RakNetConnection c) { _peer.CloseConnection(c.Guid, true); }
private RakNetConnection CreateNewConnection(RakNetGUID raknetGuid, RakPeerInterface peer) { var cid = _handler.GenerateNewConnectionId(); var c = new RakNetConnection(raknetGuid, cid, peer, OnRequestClose); _connections.TryAdd(raknetGuid.g, c); return c; }