private void ConnectionCallBack(IAsyncResult ar) { try { Socket s = (Socket)ar.AsyncState; s.EndConnect(ar); ReciveThread.Start(); if (OnConnectComplate != null) { OnConnectComplate(this); } } catch (Exception ex) { } }
public void Close() { this.Closed = true; ReciveThread.Abort(); }