restructured server app
This commit is contained in:
@@ -24,6 +24,7 @@ public:
|
||||
int main(const std::vector<std::string>& args);
|
||||
|
||||
void initialize(Poco::Util::Application& self);
|
||||
void uninitialize();
|
||||
|
||||
void defineOptions(Poco::Util::OptionSet& options);
|
||||
void handle_help(const std::string &name, const std::string &port);
|
||||
@@ -38,7 +39,6 @@ private:
|
||||
Poco::Net::HTTPServer* build_output_server();
|
||||
Poco::Net::TCPServer* build_input_server();
|
||||
|
||||
|
||||
private:
|
||||
const std::string DEFAULT_RUNTIME_DIR = "/tmp/flippR_driver-runtime/";
|
||||
const std::string SOCKET_NAME = "S.flippR_driver";
|
||||
@@ -56,6 +56,10 @@ private:
|
||||
|
||||
std::shared_ptr<input::InputDriver> input_driver;
|
||||
std::shared_ptr<output::OutputDriver> output_driver;
|
||||
|
||||
std::unique_ptr<Poco::Net::HTTPServer> output_server;
|
||||
std::unique_ptr<Poco::Net::TCPServer> input_server;
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user