Пример #1
0
 private void OnRequestClose(RakNetConnection c)
 {
     _peer.CloseConnection(c.Guid, true);
 }
Пример #2
0
        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;

        }