summaryrefslogtreecommitdiffhomepage
path: root/plugins/fcgi/socket.h
diff options
context:
space:
mode:
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