Пример #1
0
        public ClientsManagement(ServeurListener ServListener, Delegates.WriteLineDelegate WriteLine, Delegates.WriteDelegate Write)
        {
            this.WriteLineDelegate = WriteLine;
            this.WriteDelegate = Write;
            this.ConexionState = true;

            this.ServListener = ServListener;
            ServListener.ClientConnected += new ServeurListener.ClientConnectedEventHandler(ServListener_ClientConnected);

            Client_List = new Dictionary<string, Client>();
            ClientMsg_Queue = new Queue<NetMessage>();
        }
Пример #2
0
 void ServListener_ClientConnected(ServeurListener sender, Client cli)
 {
     OnClientConnected(cli);
     addClient(cli);
 }