summaryrefslogtreecommitdiffhomepage
path: root/plugins/fcgi/socket.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-05-08 10:18:33 +0200
committerRoland Reichwein <mail@reichwein.it>2020-05-08 10:18:33 +0200
commit28593ac70ea473e87f86d7bfd3488f17b6df276b (patch)
tree5b408c83501c5c9570ccb32a1db94ec0d939312c /plugins/fcgi/socket.h
parent9e635d9b19e72eefef082dd8071d3e4c9d6cfab1 (diff)
Added FCGI unix domain sockets
Diffstat (limited to 'plugins/fcgi/socket.h')
-rw-r--r--plugins/fcgi/socket.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/plugins/fcgi/socket.h b/plugins/fcgi/socket.h
index b4ec54b..8fb5610 100644
--- a/plugins/fcgi/socket.h
+++ b/plugins/fcgi/socket.h
@@ -61,10 +61,19 @@ public:
size_t read(std::vector<char>& data) override;
};
-#if 0
class FileSocket: public Socket
{
+ std::string m_app_addr;
+ boost::asio::local::stream_protocol::socket m_socket;
+
+public:
+ FileSocket(const std::string& app_addr, boost::asio::io_context& io_context);
~FileSocket() override;
+
+ void open() override;
+ void close() override;
+ bool is_open() override;
+ size_t write(const std::vector<char>& data) override;
+ size_t read(std::vector<char>& data) override;
};
-#endif