示例#1
0
        public void IsStringReceived(string message)
        {
            String e       = message;
            String command = Jsonparser.GetCommandIdentifier(e);

            if (command.Contains("node") || command.Contains("route") || command.Contains("session") || command.Contains("tunnel") || command.Contains("scene"))
            {
                VRHandler.getInstance().ParseCommand(e, command);
            }
            else
            {
                //TODO add route for other TCP trafic
            }
        }
示例#2
0
        public void IsStringReceived(string message)
        {
            string e = message;

            if (e == "")
            {
                return;
            }

            string command = Jsonparser.GetCommandIdentifier(e);

            if (command.Contains("node") || command.Contains("route") || command.Contains("session") || command.Contains("tunnel") || command.Contains("scene"))
            {
                ParseCommand(e, command);
            }
            else
            {
                //TODO add route for other TCP trafic
            }
        }