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; }
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; }
public bool process(AsynchronousServer.ClientConnection cc, HTTPRequest request) { cc.Send(new IOLessDataLinkNotFound().ToString()); return true; }