Ejemplo n.º 1
0
        public string GetPoint(String ip, int port)
        {
            CommandModel commandModel = new CommandModel();

            try
            {
                commandModel.commandsConnect(ip, port);
            }
            catch (Exception e)
            {
                return(null);
            }
            CheckPoint p = commandModel.getCurrentPosition();

            commandModel.closeCommands();
            return(new JavaScriptSerializer().Serialize(p));
        }