diff options
author | cflip <cflip@cflip.net> | 2022-07-07 09:50:38 -0600 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2022-07-07 09:50:38 -0600 |
commit | 76e6c3d690caac3faa664b7b8b79cbc7c6a58394 (patch) | |
tree | 8b0ebbc6fe543a1dc0b9d8eba72efd35f8817aa6 /src/ClientConnection.h |
Initial commit
Diffstat (limited to 'src/ClientConnection.h')
-rw-r--r-- | src/ClientConnection.h | 16 |
1 files changed, 16 insertions, 0 deletions
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 }; +}; |