summaryrefslogtreecommitdiffhomepage
path: root/NetEx
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-03-29 22:43:33 +0200
committerAki <please@ignore.pl>2022-03-29 22:43:33 +0200
commit648ced3e6b86597c2c1e52a7705ff3723c933d0e (patch)
tree3d15af12f6252e9e7cc2bf73e1103768a6ad958b /NetEx
parent6204e62c69c1a05d3beddd0c7397b3f54e576d74 (diff)
downloadstarshatter-648ced3e6b86597c2c1e52a7705ff3723c933d0e.zip
starshatter-648ced3e6b86597c2c1e52a7705ff3723c933d0e.tar.gz
starshatter-648ced3e6b86597c2c1e52a7705ff3723c933d0e.tar.bz2
Removed windows header usage in HttpServer
Diffstat (limited to 'NetEx')
-rw-r--r--NetEx/HttpServer.cpp4
-rw-r--r--NetEx/HttpServer.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/NetEx/HttpServer.cpp b/NetEx/HttpServer.cpp
index a7522e8..98d997f 100644
--- a/NetEx/HttpServer.cpp
+++ b/NetEx/HttpServer.cpp
@@ -13,8 +13,8 @@
#include "HttpServer.h"
+#include <stdint.h>
#include <stdio.h>
-#include <windows.h>
#include "HttpParam.h"
#include "HttpRequest.h"
@@ -25,7 +25,7 @@
#include "Text.h"
-HttpServer::HttpServer(WORD port, int poolsize) :
+HttpServer::HttpServer(uint16_t port, int poolsize) :
NetServer(port, poolsize)
{
http_server_name = "Generic HttpServer 1.0";
diff --git a/NetEx/HttpServer.h b/NetEx/HttpServer.h
index 8bac7ab..2bba488 100644
--- a/NetEx/HttpServer.h
+++ b/NetEx/HttpServer.h
@@ -14,7 +14,7 @@
#ifndef HttpServer_h
#define HttpServer_h
-#include <windows.h>
+#include <stdint.h>
#include "HttpRequest.h"
#include "HttpResponse.h"
@@ -28,7 +28,7 @@ class HttpServer : public NetServer
public:
static const char* TYPENAME() { return "HttpServer"; }
- HttpServer(WORD port, int poolsize=1);
+ HttpServer(uint16_t port, int poolsize=1);
virtual ~HttpServer();
int operator == (const HttpServer& l) const { return addr == l.addr; }