コード例 #1
0
 private void TmrRefresh_Tick(object sender, EventArgs e)
 {
     if (!listening)
     {
         LblSocket.Text = "Socket is: Waiting";
     }
     else
     {
         if (Listener.Stats.Listening)
         {
             LblSocket.Text = "Socket is: Listening on port " + Listener.Port;//.Settings.Port;
             //LblRecv.Text = "Recv: " +
         }
     }
     LblSent.Text  = "Sent: " + Clients.Sent();
     LblRecv.Text  = "Recv: " + Clients.Recv();
     LblRPPS.Text  = "RPPS: " + Clients.RecvPPS();
     LblSPPS.Text  = "SPPS: " + Clients.SentPPS();
     LblDebug.Text = string.Format("WFT: {0} - T: {1}", CS.ThreadCount(), "??");
 }