Mercurial > hg > openttd
changeset 5861:f075db30c06a draft
(svn r8437) -Codechange: move often duplicated (in MSU) define to the udp header.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 28 Jan 2007 13:07:24 +0000 |
parents | dc5ff33e8dda |
children | 77bb2ce4f5ad |
files | src/network/core/udp.h src/network/network_udp.cpp |
diffstat | 2 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network/core/udp.h +++ b/src/network/core/udp.h @@ -90,6 +90,7 @@ }; #define DECLARE_UDP_RECEIVE_COMMAND(type) virtual void NetworkPacketReceive_## type ##_command(Packet *p, const struct sockaddr_in *) +#define DEF_UDP_RECEIVE_COMMAND(cls, type) void cls ##NetworkUDPSocketHandler::NetworkPacketReceive_ ## type ## _command(Packet *p, const struct sockaddr_in *client_addr) /** Base socket handler for all UDP sockets */ class NetworkUDPSocketHandler : public NetworkSocketHandler {
--- a/src/network/network_udp.cpp +++ b/src/network/network_udp.cpp @@ -32,8 +32,6 @@ NetworkUDPSocketHandler *_udp_server_socket; ///< udp server socket NetworkUDPSocketHandler *_udp_master_socket; ///< udp master socket -#define DEF_UDP_RECEIVE_COMMAND(cls, type) void cls ##NetworkUDPSocketHandler::NetworkPacketReceive_ ## type ## _command(Packet *p, const struct sockaddr_in *client_addr) - ///*** Communication with the masterserver ***/ class MasterNetworkUDPSocketHandler : public NetworkUDPSocketHandler {