Exemplo n.º 1
0
        public void AddClientInterface(IClientNetworkInterface clientInf)
        {
            if (IsRunning)
                throw new InvalidOperationException("An interface cannot be added whilst the network adapter is running, if you want this functionality implement the ThreadSafeList component.");

            ClientInterfaces.Add(clientInf);
        }
Exemplo n.º 2
0
        public ClientReactor(IClientNetworkInterface networkInterface)
        {
            handlers = new Dictionary <byte, ClientMessageHandler>();

            networkInterface.ReceivedPacket += OnReceivedPacket;
        }