[DEV] first implementation of windows socket (missing read)

This commit is contained in:
2016-10-06 01:28:56 +02:00
parent 5cb8ea40e3
commit a979e33401
11 changed files with 428 additions and 169 deletions

View File

@@ -19,7 +19,7 @@ namespace appl {
void onReceiveHeader(enet::HttpServer* _interface, const enet::HttpRequest& _data) {
TEST_INFO("Receive Header data:");
_data.display();
if (_data.getType() == enet::HTTPReqType::GET) {
if (_data.getType() == enet::HTTPReqType::HTTP_GET) {
if (_data.getUri() == "plop.txt") {
enet::HttpAnswer answer(enet::HTTPAnswerCode::c200_ok);
std::string data = "<html><head></head></body>coucou</body></html>";