diff options
author | Aki <please@ignore.pl> | 2022-03-30 21:02:48 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-03-30 21:02:48 +0200 |
commit | 5ec69c1f7ce048f16302feaddc76778003bb4d71 (patch) | |
tree | 84d29535fae28c099e1ab4f02e9427f1c9d46da4 /NetEx/NetClient.h | |
parent | fa8827a0d36a30cc3d36ff68a8619a9081893f49 (diff) | |
download | starshatter-5ec69c1f7ce048f16302feaddc76778003bb4d71.zip starshatter-5ec69c1f7ce048f16302feaddc76778003bb4d71.tar.gz starshatter-5ec69c1f7ce048f16302feaddc76778003bb4d71.tar.bz2 |
Cleaned up includes in NetClient
Diffstat (limited to 'NetEx/NetClient.h')
-rw-r--r-- | NetEx/NetClient.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/NetEx/NetClient.h b/NetEx/NetClient.h index 0d5755e..5bd7d10 100644 --- a/NetEx/NetClient.h +++ b/NetEx/NetClient.h @@ -3,25 +3,23 @@ Copyright (c) 2011-2012, Starshatter OpenSource Distribution Contributors Copyright (c) 1997-2006, Destroyer Studios LLC. - AUTHOR: John DiCamillo + AUTHOR: John DiCamillo - OVERVIEW - ======== - Stream-oriented network client class + OVERVIEW + ======== + Stream-oriented network client class */ - #ifndef NetClient_h #define NetClient_h -#include <windows.h> +#include <cstdint> + #include "NetAddr.h" -#include "NetGram.h" #include "NetSock.h" -#include "List.h" +#include "Text.h" -// +-------------------------------------------------------------------+ class NetClient { @@ -40,13 +38,13 @@ public: Text SendRecv(Text msg); int GetLastError() const { return err; } - DWORD GetTime() const { return delta; } + std::uint32_t GetTime() const { return delta; } protected: NetAddr addr; NetSock* sock; - DWORD delta; - DWORD time; + std::uint32_t delta; + std::uint32_t time; int err; public: |