Ejemplo n.º 1
0
        public bool process(AsynchronousServer.ClientConnection cc, HTTPRequest request)
        {
            if (request.path.StartsWith("/telemachus/datalink"))
            {
                String args = request.path.Remove(0, request.path.IndexOf('?') + 1);
                String[] argsSplit = args.Split('&');

                foreach (String arg in argsSplit)
                {

                }
            }

            return false;
        }
Ejemplo n.º 2
0
        public bool process(AsynchronousServer.ClientConnection cc, HTTPRequest request)
        {
            if (request.path.StartsWith("/telemachus"))
            {
                try
                {
                    cc.Send(new OKPage(System.IO.File.ReadAllText(request.path.TrimStart(new char[]{'/'}))).ToString());
                }
                catch
                {
                    return false;
                }
            }

            return true;
        }
Ejemplo n.º 3
0
 public bool process(AsynchronousServer.ClientConnection cc, HTTPRequest request)
 {
     cc.Send(new IOLessDataLinkNotFound().ToString());
     return true;
 }