void OnConnect(IAsyncResult ar) { Socket temp = LocalSocket.EndAccept(ar); XClient xc = new XClient(temp); xc.StartRelay(); m_ClientList.Add(xc); xc.OnDisconnect += new DestroyDelegate(RemoveClient); LocalSocket.BeginAccept(new AsyncCallback(OnConnect), null); }
private void RemoveClient(XClient xc) { m_ClientList.Remove(xc); if ( xc.Username != null ) Console.WriteLine("Kullanıcı Düştü"+xc.Username); }
public XProcessor(XClient nXClient) { this.m_Client = nXClient; }