adjust using of routerin
This commit is contained in:
parent
7f5e571dfb
commit
5cba410e54
|
@ -18,7 +18,6 @@ class MongooseHandler{
|
|||
struct mg_context *ctx;
|
||||
//const char *options[];
|
||||
unsigned short listenport;
|
||||
Routerin routerin;
|
||||
// = {"listening_ports", "8080", NULL};
|
||||
|
||||
public:
|
||||
|
@ -29,10 +28,11 @@ class MongooseHandler{
|
|||
listenport(listenport)
|
||||
{
|
||||
char portstring[8];
|
||||
Routerin *routerin = Routerin::get_instance();
|
||||
std::snprintf(portstring,8,"%d",this->listenport);
|
||||
const char *options[] =
|
||||
{"listening_ports",portstring,nullptr};
|
||||
this->ctx= mg_start(options, routerin.event_route,nullptr);
|
||||
this->ctx= mg_start(options, routerin->event_route, nullptr);
|
||||
}
|
||||
|
||||
//no copy constructor:
|
||||
|
|
Loading…
Reference in New Issue