summaryrefslogtreecommitdiffhomepage
path: root/NetEx/NetClient.h
diff options
context:
space:
mode:
Diffstat (limited to 'NetEx/NetClient.h')
-rw-r--r--NetEx/NetClient.h22
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: