adapted filesystem library
This commit is contained in:
@@ -181,9 +181,8 @@ HTTPServer* FlippRServer::build_output_server()
|
|||||||
{
|
{
|
||||||
unsigned short port = (unsigned short) config().getInt("FlippRServer.port", this->output_port);
|
unsigned short port = (unsigned short) config().getInt("FlippRServer.port", this->output_port);
|
||||||
|
|
||||||
std::string runtime_dir = this->get_runtime_dir();
|
std::string path = this->create_directory(OUTPUT_SOCKET_NAME);
|
||||||
|
SocketAddress address(path);
|
||||||
SocketAddress address(runtime_dir + OUTPUT_SOCKET_NAME);
|
|
||||||
ServerSocket server_socket(address);
|
ServerSocket server_socket(address);
|
||||||
|
|
||||||
return new HTTPServer(new OutputRequestHandlerFactory(this->output_driver), server_socket, new HTTPServerParams);
|
return new HTTPServer(new OutputRequestHandlerFactory(this->output_driver), server_socket, new HTTPServerParams);
|
||||||
@@ -193,8 +192,8 @@ TCPServer* FlippRServer::build_input_server()
|
|||||||
{
|
{
|
||||||
unsigned short port = (unsigned short) config().getInt("FlippRServer.port", this->output_port);
|
unsigned short port = (unsigned short) config().getInt("FlippRServer.port", this->output_port);
|
||||||
|
|
||||||
std::string runtime_dir = this->get_runtime_dir();
|
std::string path = this->create_directory(INPUT_SOCKET_NAME);
|
||||||
SocketAddress address(runtime_dir + INPUT_SOCKET_NAME);
|
SocketAddress address(path);
|
||||||
ServerSocket server_socket(address);
|
ServerSocket server_socket(address);
|
||||||
|
|
||||||
return new TCPServer(new input::InputSocketHandlerFactory(this->input_driver), port);
|
return new TCPServer(new input::InputSocketHandlerFactory(this->input_driver), port);
|
||||||
|
|||||||
Reference in New Issue
Block a user