From 76e6c3d690caac3faa664b7b8b79cbc7c6a58394 Mon Sep 17 00:00:00 2001 From: cflip Date: Thu, 7 Jul 2022 09:50:38 -0600 Subject: Initial commit --- src/ClientConnection.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/ClientConnection.h (limited to 'src/ClientConnection.h') diff --git a/src/ClientConnection.h b/src/ClientConnection.h new file mode 100644 index 0000000..6fdf99e --- /dev/null +++ b/src/ClientConnection.h @@ -0,0 +1,16 @@ +#pragma once + +#include "HttpResponse.h" + +class ClientConnection { +public: + ClientConnection(int socket); + + void dump_request_data(); + + bool send(const HttpResponse&, const char*); + void close(); +private: + int m_socket_fd; + bool m_is_open { true }; +}; -- cgit v1.2.3