(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.
This commit is contained in:
@@ -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);
|
||||
|
@@ -11,7 +11,7 @@
|
||||
#include "../../openttd.h"
|
||||
#include "../../variables.h"
|
||||
|
||||
#include "../network_data.h"
|
||||
#include "../network_internal.h"
|
||||
#include "packet.h"
|
||||
#include "tcp.h"
|
||||
|
||||
|
Reference in New Issue
Block a user