Proper sessions part 1
[link.git] / Includes / Client.hpp
blobfe2c6ed9dc7c93002e86361c0d5ddbd4bbd6346f
1 #ifndef Client
2 #include <iostream>
4 class Client {
5 public:
6 Client(int ClientSocket, struct sockaddr_in* ClientAddress);
7 int getClientSocket();
8 struct sockaddr_in* getClientAddress();
9 std::string getRequest();
10 private:
11 int ClientSocket;
12 struct sockaddr_in* ClientAddress;
13 std::string Request;
14 char Buffer[1024] = { 0 };
17 void InitializeDatabase();
18 void* ClientHandler(void* arg);
20 #endif