summaryrefslogtreecommitdiff
path: root/src/ClientConnection.h
blob: 6fdf99e363715538b033ecf1e462f5d6a86fd4bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 };
};