Example #1
0
        private void TryRemoveConnection(string remote)
        {
            lock (map_remote2Connection)
            {
                CSConnection connection = null;
                if (map_remote2Connection.TryGetValue(remote, out connection))
                {
                    map_remote2Connection.Remove(remote);

                    ConnectionMessage message = new ConnectionMessage(remote);
                    onConnectionDropped.SafeInvoke(message);
                }
            }
        }
Example #2
0
 private void OnConnectionDropped(INetEventObject message)
 {
     Net.TCP.Server.ConnectionMessage connectionMessage = message as Net.TCP.Server.ConnectionMessage;
     Util.Debug.ServerLog("OnConnectionDropped form:{0}", connectionMessage.remote.ToString());
 }
Example #3
0
 private void OnAccepted(INetEventObject message)
 {
     Net.TCP.Server.ConnectionMessage connectionMessage = message as Net.TCP.Server.ConnectionMessage;
     Util.Debug.ServerLog("Accepted form:{0}", connectionMessage.remote);
 }