Ejemplo n.º 1
0
 public void AcceptCallback(IAsyncResult ar)
 {
     allDone.Set();
     var listener = (TcpListener)ar.AsyncState;
     var handler = listener.EndAcceptTcpClient(ar);
     Console.WriteLine(handler.Client.RemoteEndPoint + " connected.");
     var receiver = new Receiver(this, listener, handler);         
 }
Ejemplo n.º 2
0
 public void DisposeReceiver(Receiver receiver)
 {
     clients.Remove(receiver.Nickname);
     BroadcastLoggedIn();
 }
Ejemplo n.º 3
0
 public void AddReceiver(string auth, Receiver receiver)
 {
     clients.Add(auth,receiver);
     BroadcastLoggedIn();
 }