示例#1
0
        public void setup(Dictionary<string, string> variableList)
        {
            action = new InputHTTPAction(core);
            try
            {
                port = CMSConfig.httpport;
                myListener = new TcpListener(port);
            }
            catch (Exception e)
            {
                UIMain.fatalError("[InputHTTP] Unable to open port : "+port+"\n"+e.Message);
            }

        }
示例#2
0
 public void setup(Dictionary<string, string> variableList)
 {
     action = new InputHTTPAction(core);
     try
     {
         //port = CMSConfig.httpport;
         scheduler = KayakScheduler.Factory.Create(new SchedulerDelegate());
         server = KayakServer.Factory.CreateHttp(new RequestDelegate(action), scheduler);
     }
     catch (Exception e)
     {
         UIMain.fatalError("[InputHTTP] Unable to open port : " + CMSConfig.httpport + "\n" + e.Message);
     }
 }
示例#3
0
 public RequestDelegate(InputHTTPAction action)
 {
     this.action = action;
 }
示例#4
0
 public InputHTTPHandle(ref Socket mySocket, InputHTTPAction action, List<String> availableSlides)
 {
     this.mySocket = mySocket;
     this.action = action;
     this.availableSlides = availableSlides;
 }