I've been working on an app that bridges http calls over an established tunnel between two JID's. I have my tunneling setup correctly, but I cannot figure out how I'm supposed to use the HttpServer to serve requests. Using talk_base::HttpListenServer I can accept connections:
server.Listen(talk_base::SocketAddress("127.0.0.1", 59000));
But even after attaching a signal:
server.SignalHttpRequest.connect(this, &TunnelManager::HandleTouchRequest);
I have no idea how I'm supposed to respond to the requests. At this point, the requests just hang after connecting with no apparent signals being called. I was wondering if there are any better resources, possibly code examples, for me to look at to get a working http server?