summaryrefslogtreecommitdiff
path: root/src/network/core
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-30 18:20:26 +0000
committerrubidium <rubidium@openttd.org>2008-05-30 18:20:26 +0000
commitbae02e8c671b523b671910d75a838aee2cdc57d6 (patch)
treeae098eb73283ba9ab9875b3df24bbe3b5eb7fef1 /src/network/core
parent026afc097a1cf098b2b62a6f91a384bf3ae17c91 (diff)
downloadopenttd-bae02e8c671b523b671910d75a838aee2cdc57d6.tar.xz
(svn r13343) -Codechange: reorder/move variable/functions in the network headers so that nothing from the network directory needs to include basically all network headers.
Diffstat (limited to 'src/network/core')
-rw-r--r--src/network/core/core.h4
-rw-r--r--src/network/core/tcp.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/network/core/core.h b/src/network/core/core.h
index 54ff156f3..4c5b3f9bd 100644
--- a/src/network/core/core.h
+++ b/src/network/core/core.h
@@ -62,7 +62,7 @@ public:
* Whether this socket is currently bound to a socket.
* @return true when the socket is bound, false otherwise
*/
- bool IsConnected() { return this->sock != INVALID_SOCKET; }
+ bool IsConnected() const { return this->sock != INVALID_SOCKET; }
/**
* Whether the current client connected to the socket has quit.
@@ -70,7 +70,7 @@ public:
* data), the socket in not closed; only the packet is dropped.
* @return true when the current client has quit, false otherwise
*/
- bool HasClientQuit() { return this->has_quit; }
+ bool HasClientQuit() const { return this->has_quit; }
void Send_GRFIdentifier(Packet *p, const GRFIdentifier *grf);
void Recv_GRFIdentifier(Packet *p, GRFIdentifier *grf);
diff --git a/src/network/core/tcp.cpp b/src/network/core/tcp.cpp
index f44f1741c..6450d4778 100644
--- a/src/network/core/tcp.cpp
+++ b/src/network/core/tcp.cpp
@@ -11,7 +11,7 @@
#include "../../openttd.h"
#include "../../variables.h"
-#include "../network_data.h"
+#include "../network_internal.h"
#include "packet.h"
#include "tcp.h"