can accept multiple connection / server can send data back to client

This commit is contained in:
Benjamin Sergeant
2018-12-30 21:16:05 -08:00
parent 0ee71e9a09
commit 266cf93584
3 changed files with 33 additions and 14 deletions

View File

@ -8,6 +8,8 @@
#include <utility> // pair
#include <string>
#include <vector>
#include <thread>
namespace ix
{
@ -18,7 +20,11 @@ namespace ix
std::pair<bool, std::string> run();
void handleConnection(int fd);
private:
int _port;
std::vector<std::thread> _workers;
};
}