/******************************************************************************* * Control.cc Control process * T.Barnaby, BEAM Ltd, 2007-05-23 ******************************************************************************* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include Control::Control() : ohttpServer(*this) { } Control::~Control(){ } BError Control::init(){ BError err; // Open and read configuration if(oconfig.open("tmsWebDebug.conf")) oconfig.open("/etc/tmsWeb.conf"); oconfig.read(); if(err = ohttpServer.init()){ return err; } if(err = ohttpServer.start()){ return err; } return err; } void Control::run(){ while(1) pause(); }