Beispiel #1
0
 static void socketClient_SessionSendException(object sender, TSessionExceptionEventArgs e)
 {
     if (socketExceptionQueue.Count < 10)
     {
         socketExceptionQueue.Enqueue("[" + DateTime.Now.ToString("HH:mm:ss") + "] Send:" + e.ExceptionMessage);
     }
 }
Beispiel #2
0
 private void SocketServer_SocketSendException(object sender, TSessionExceptionEventArgs e)
 {
     //this.tb_SessionCount.Text = _socketServer.SessionCount.ToString();
     //this.tb_ClientExceptionCount.Text = _socketServer.SessionExceptionCount.ToString();
     this.AddInfo("client socket send exception: ip: " + e.SessionBaseInfo.IP + " exception message: " + e.ExceptionMessage);
 }
 private void SocketServer_SocketSendException(object sender, TSessionExceptionEventArgs e)
 {
     //this.tb_SessionCount.Text = _socketServer.SessionCount.ToString();
     //this.tb_ClientExceptionCount.Text = _socketServer.SessionExceptionCount.ToString();
     this.AddInfo("client socket send exception: ip: " + e.SessionBaseInfo.IP + " exception message: " + e.ExceptionMessage);
 }