void tcpServerEngine_SessionClosed(MyAppSession session, global::SuperSocket.SocketBase.CloseReason value)
        {
            this.ShowMessage(session.RemoteEndPoint, "下线");
            MyAppSession outAppSession;

            mOnLineConnections.TryRemove(session.SessionID, out outAppSession);
            this.ShowConnectionCount(mOnLineConnections.Count);
            //this.ShowConnectionCount(this.tcpServerEngine.SessionCount);
        }
Beispiel #2
0
        void SessionClosed(MesSession session, global::SuperSocket.SocketBase.CloseReason value)
        {
            ShowMessage(session.RemoteEndPoint, "断开连接");
            MesSession outMesSession;

            mOnLineConnections.TryRemove(session.SessionID, out outMesSession);
            ShowConnectionCount(mOnLineConnections.Count);
            ShowClientsMessage("close", session);
            currentMesSession = null;
        }
Beispiel #3
0
        private void MesServer_SessionClosed(MesSession session, global::SuperSocket.SocketBase.CloseReason value)
        {
            this.ShowMessage(session.RemoteEndPoint, "断开连接");
            MesSession outMesSession;

            mOnLineConnections.TryRemove(session.SessionID, out outMesSession);
            this.ShowConnectionCount(mOnLineConnections.Count);
            ShowClientsMessage(mOnLineConnections);
            //this.ShowConnectionCount(this.tcpServerEngine.SessionCount);
        }
Beispiel #4
0
 // 连接关闭
 private void SessionClosed(MesSession session, global::SuperSocket.SocketBase.CloseReason value)
 {
     HandleInit();
 }
Beispiel #5
0
 void SessionClosed(MesSession session, global::SuperSocket.SocketBase.CloseReason value)
 {
     sessionClosedQueueServer.EnqueueItem(session);
 }
Beispiel #6
0
 // 连接关闭
 private void SessionClosed(MesSession session, global::SuperSocket.SocketBase.CloseReason value)
 {
     ShowMessage(ColorHelper.MsgRed, session.RemoteEndPoint + " 断开连接!");
     ShowDeviceInfo("close", session);
 }