예제 #1
0
 public virtual void OnDisconnect(SocketLinkSession session)
 {
     Flow.Publish(new LinkSessionDisconnected {
         LinkName = Name,
         Context = session
     });
 }
예제 #2
0
파일: TcpServer.cs 프로젝트: nice1378/x2clr
 void OnHeartbeatEvent(SocketLinkSession session, HeartbeatEvent e)
 {
     Timer.Cancel(session.HeartbeatTimeoutToken);
     session.HeartbeatTimeoutToken = Timer.Reserve(session, 15);
 }
예제 #3
0
        public override void Close()
        {
            if (session == null)
            {
                return;
            }

            session.Close();

            session = null;
            socket = null;
        }
예제 #4
0
        public override void OnDisconnect(SocketLinkSession session)
        {
            Diag.DecrementConnectionCount();

            base.OnDisconnect(session);
        }