Hi opreanstefan,
It is a little hard to follow the code here and understand exactly what you are asking for. I don't see the 'Server' class declared anywhere, but the http_listener is stored in a class called 'Monitoring'. What exactly is the purpose of this 'handle_a_request', is it to try and handle just a single HTTP request and not subsequent ones? I don't see why you need to have more request handlers.
In general the way you register handlers with our http_listener for requests is through the http_listener::support(...) APIs. There is one that can be used to handle all request, regardless of HTTP method, and another overload that can be used to register for specific HTTP methods.
Steve
It is a little hard to follow the code here and understand exactly what you are asking for. I don't see the 'Server' class declared anywhere, but the http_listener is stored in a class called 'Monitoring'. What exactly is the purpose of this 'handle_a_request', is it to try and handle just a single HTTP request and not subsequent ones? I don't see why you need to have more request handlers.
In general the way you register handlers with our http_listener for requests is through the http_listener::support(...) APIs. There is one that can be used to handle all request, regardless of HTTP method, and another overload that can be used to register for specific HTTP methods.
Steve