Пример #1
0
        void tcp_OnConnected(object sender, TcpService.ConnectedEventArgs e)
        {
            try{
                TcpService.TcpServer tcp = sender as TcpService.TcpServer;
                //添加入连接列表
                //TcpService.TcpBussiness.AddSocket(tcp, e.ClientSocket);

                //上线通知
                TcpService.TcpBussiness.TcpConnected(tcp, e.ClientSocket);
            }
            catch (Exception ex)
            {
                log.Error(DateTime.Now + "上线操作异常" + ex.ToString());
            }
        }