예제 #1
0
 void server_OnDisconnect(ASyncSocket AcceptedSocket)
 {
     if (this.InvokeRequired)
     {
         dserver_OnDisconnect d    = new dserver_OnDisconnect(server_OnDisconnect);
         object[]             args = { AcceptedSocket };
         this.Invoke(d, args);
     }
     else
     {
         String command = "Simulator disconnected";
         outPutTxtBx.AppendText(command);
         outPutTxtBx.ScrollToCaret();
         this.closeDebuggerSession(true);
         //              Console.WriteLine(Stream);
     }
 }
예제 #2
0
 void server_OnDisconnect(ASyncSocket AcceptedSocket)
 {
     if (this.InvokeRequired)
     {
         dserver_OnDisconnect d = new dserver_OnDisconnect(server_OnDisconnect);
         object[] args = {AcceptedSocket };
         this.Invoke(d, args);
     }
     else
     {
         String command = "Simulator disconnected";
         outPutTxtBx.AppendText(command);
         outPutTxtBx.ScrollToCaret();
         this.closeDebuggerSession(true);
         //              Console.WriteLine(Stream);
     }
 }
예제 #3
0
        void server_OnDisconnect(ASyncSocket AcceptedSocket)
        {
            if (this.InvokeRequired)
            {
                dserver_OnDisconnect d = new dserver_OnDisconnect(server_OnDisconnect);
                object[] args = { AcceptedSocket };
                this.Invoke(d);
            }
            else
            {
                String command = "Remote Disconnected";

                //              Console.WriteLine(Stream);
            }
        }