unique_ptr for sockets

This commit is contained in:
Benjamin Sergeant committed 2020-03-24 12:48:55 -07:00
1 parent 9f818c7acf
commit 179e17895d
25 files changed
+54 -51

No files matched your search

+2 -2
View File
@@ -115,8 +115,8 @@ namespace ix
{
public:
static std::tuple<bool, std::string, HttpRequestPtr> parseRequest(
std::shared_ptr<Socket> socket);
static bool sendResponse(HttpResponsePtr response, std::shared_ptr<Socket> socket);
std::unique_ptr<Socket>& socket);
static bool sendResponse(HttpResponsePtr response, std::unique_ptr<Socket>& socket);
static std::pair<std::string, int> parseStatusLine(const std::string& line);
static std::tuple<std::string, std::string, std::string> parseRequestLine(