(svn r8459) -Codechange: move (Send|Recv)GRFIdentifier to NetworkSocketHandler, so it can also be used the TCP socket handler.

This commit is contained in:
rubidium
2007-01-30 17:12:46 +00:00
parent 7feba09d9f
commit 291b7925ee
4 changed files with 38 additions and 33 deletions

View File

@@ -6,6 +6,7 @@
#ifdef ENABLE_NETWORK
#include "os_abstraction.h"
#include "../../newgrf_config.h"
/**
* @file core.h Base for all network types (UDP and TCP)
@@ -27,6 +28,9 @@ typedef enum {
NETWORK_RECV_STATUS_CLOSE_QUERY, ///< Done quering the server
} NetworkRecvStatus;
/** Forward declaration due to circular dependencies */
class Packet;
/**
* SocketHandler for all network sockets in OpenTTD.
*/
@@ -66,6 +70,9 @@ public:
* @return true when the current client has quit, false otherwise
*/
bool HasClientQuit() { return this->has_quit; }
void Send_GRFIdentifier(Packet *p, const GRFIdentifier *grf);
void Recv_GRFIdentifier(Packet *p, GRFIdentifier *grf);
};
#endif /* ENABLE_NETWORK */