-\r
- int port;\r
- std::string portstr;\r
- Option::Instance()->Get("HTTPListenPort",portstr);\r
- StringFunctions::Convert(portstr,port);\r
-\r
- m_pagehandlers.push_back(new HomePage());\r
-\r
- m_ctx=0;\r
- m_ctx=shttpd_init(NULL,"listen_ports",portstr.c_str(),NULL);\r
- shttpd_listen(m_ctx,port,false);\r
-\r
- shttpd_register_uri(m_ctx,"*",HTTPThread::PageCallback,this);\r
-\r