Ejemplo n.º 1
0
        private void ConnectionCallBack(IAsyncResult ar)
        {
            try
            {
                Socket s = (Socket)ar.AsyncState;
                s.EndConnect(ar);
                ReciveThread.Start();

                if (OnConnectComplate != null)
                {
                    OnConnectComplate(this);
                }
            }
            catch (Exception ex)
            {
            }
        }
Ejemplo n.º 2
0
 public void Close()
 {
     this.Closed = true;
     ReciveThread.Abort();
 }