Ejemplo n.º 1
0
 public bool Connect()
 {
     sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
     if (sock == null)
     {
         return(false);
     }
     try
     {
         op.Show();
         sock.Connect("47.100.102.50", 28901);//39.104.106.202
         thread = new Thread(new ParameterizedThreadStart(ThreadFun));
         thread.Start(this);
     }
     catch
     {
         return(false);
     }
     return(true);
 }
Ejemplo n.º 2
0
 public void setOutPut(OutPut _op)
 {
     pOut = _op;
     pOut.Show();
 }
Ejemplo n.º 3
0
 public void Show()
 {
     pOut.Show();
 }