diff options
author | Aki <please@ignore.pl> | 2022-03-30 20:05:43 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-03-30 20:05:43 +0200 |
commit | e82de625bdeacca91b306c67ba98344e7086a5c1 (patch) | |
tree | b7f51f86e5ed75b2b0bb20d926cb733c32a71e4d /NetEx | |
parent | 335db6b0875c7e954cf9daa4ed16bceac4597288 (diff) | |
download | starshatter-e82de625bdeacca91b306c67ba98344e7086a5c1.zip starshatter-e82de625bdeacca91b306c67ba98344e7086a5c1.tar.gz starshatter-e82de625bdeacca91b306c67ba98344e7086a5c1.tar.bz2 |
Fixed changed that were missed in NetAddr
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; |