#include "../shared/ReplyToClient.h" #include "../shared/NewConnections.h" #include "../shared/GlobalConfigFile.h" #include "../shared/LogFile.h" #include "ProxyMainLoop.h" #include "HttpThread.h" #include "OneTimeTimeout.h" int main(int argc, char *argv[]) { // This is required to make the XML work right with utf-8. setlocale(LC_ALL, ""); if (!addConfigItemsFromCommandLine(argv + 1)) { return 1; } configItemsComplete(); OneTimeTimeoutThread::initialize(); initReplyToClient(rtcLiteralSerializer); ProxyMainLoop proxyMainLoop; HttpThread httpThread(&proxyMainLoop); InputListener httpListener(httpThread.getInput(), httpThread.getInputCallbackId()); LogFile::primary().setShowClose(false); // Start listening to new sockets now, after the other modules have // had time to configure themselves. NewConnections newConnections(&httpListener, 4433, false); while (true) sleep(60); }