Esempio n. 1
0
        public void OnDataRecieved(object[] data)
        {
            NetworkCommand command = (NetworkCommand)data[0];

            if (command == NetworkCommand.RemoteChat)
            {
                RemoteChatHandler.Handle(data);
            }
            if (command == NetworkCommand.RemoteDesktop)
            {
                RemoteDesktopHandler.Handle(data);
            }
        }
Esempio n. 2
0
        public void OnDataRetrieved(IClient client, object[] data)
        {
            NetworkCommand command = (NetworkCommand)data[0];

            switch (command)
            {
            case NetworkCommand.RemoteChat:
                RemoteChatHandler.Handle(client, data);
                break;

            case NetworkCommand.RemoteDesktop:
                RemoteDesktopHandler.Handle(client, data);
                break;
            }
        }