Esempio n. 1
0
 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);            
 }
Esempio n. 2
0
 private void RemoveClient(XClient xc)
 {
     m_ClientList.Remove(xc);
     if ( xc.Username != null )
     Console.WriteLine("Kullanıcı Düştü"+xc.Username);
 }
Esempio n. 3
0
 public XProcessor(XClient nXClient)
 {
     this.m_Client = nXClient;
 }