private void SocketServer_DatagramrError(object sender, TSessionEventArgs e) { //this.tb_DatagramCount.Text = _socketServer.ReceivedDatagramCount.ToString(); //this.tb_DatagramQueueCount.Text = _socketServer.DatagramQueueLength.ToString(); //this.tb_ErrorDatagramCount.Text = _socketServer.ErrorDatagramCount.ToString(); this.AddInfo("datagram error. ip: " + e.SessionBaseInfo.IP); }
private void SocketServer_SessionDisconnected(object sender, TSessionEventArgs e) { //this.tb_SessionCount.Text = _socketServer.SessionCount.ToString(); this.AddInfo("Session disconnected: ip " + e.SessionBaseInfo.IP); }
private void SocketServer_SessionSendException(object sender, TSessionEventArgs e) { //this.tb_SessionCount.Text = _socketServer.SessionCount.ToString(); //this.tb_ClientExceptionCount.Text = _socketServer.SessionExceptionCount.ToString(); this.AddInfo("Session send exception: ip " + e.SessionBaseInfo.IP); }
private void SocketServer_DatagramHandled(object sender, TSessionEventArgs e) { this.tb_DatagramCount.Text = m_socketServer.ReceivedDatagramCount.ToString(); this.tb_DatagramQueueCount.Text = m_socketServer.DatagramQueueLength.ToString(); this.AddInfo("datagram handled. ip: " + e.SessionBaseInfo.IP); }
private void SocketServer_SessionTimeout(object sender, TSessionEventArgs e) { this.AddInfo("Session timeout: ip " + e.SessionBaseInfo.IP); }
static void socketClient_SessionConnected(object sender, TSessionEventArgs e) { //Business.InvokeMethod(frmCurrent, "showConnect", new object[] { }); }
private void SocketServer_SessionReceiveException(object sender, TSessionEventArgs e) { this.tb_SessionCount.Text = m_socketServer.SessionCount.ToString(); this.tb_ClientExceptionCount.Text = m_socketServer.SessionExceptionCount.ToString(); this.AddInfo("Session receive exception: ip " + e.SessionBaseInfo.IP); }
//2011.11.16 增加log输出 private void SocketServer_DatagramLogout(object sender, TSessionEventArgs e) { this.AddInfo("datagram logout: " + e.SessionBaseInfo.Logout); }