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