diff options
Diffstat (limited to 'NetEx')
-rw-r--r-- | NetEx/NetAddr.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/NetEx/NetAddr.h b/NetEx/NetAddr.h index b3d1c87..1b69c25 100644 --- a/NetEx/NetAddr.h +++ b/NetEx/NetAddr.h @@ -17,6 +17,7 @@ #ifdef _WIN32 #include <winsock2.h> #else +#include <arpa/inet.h> #include <sys/socket.h> #endif @@ -41,7 +42,7 @@ public: std::uint8_t B1() const { return static_cast<std::uint8_t>((addr & 0x000000ff) ); } std::uint16_t Port() const { return port; } - void SetPort(WORD p) { port = p; } + void SetPort(std::uint16_t p) { port = p; } sockaddr* GetSockAddr() const; size_t GetSockAddrLength() const; |