src/network/core/udp.h
changeset 6112 77a567235d2f
parent 6016 9d7b851ffe1c
child 6115 c5bde03ec914
equal deleted inserted replaced
6111:32f6149dc192 6112:77a567235d2f
    88 	PACKET_UDP_SERVER_NEWGRFS,       ///< Sends the list of NewGRF's requested.
    88 	PACKET_UDP_SERVER_NEWGRFS,       ///< Sends the list of NewGRF's requested.
    89 	PACKET_UDP_END                   ///< Must ALWAYS be on the end of this list!! (period)
    89 	PACKET_UDP_END                   ///< Must ALWAYS be on the end of this list!! (period)
    90 };
    90 };
    91 
    91 
    92 #define DECLARE_UDP_RECEIVE_COMMAND(type) virtual void NetworkPacketReceive_## type ##_command(Packet *p, const struct sockaddr_in *)
    92 #define DECLARE_UDP_RECEIVE_COMMAND(type) virtual void NetworkPacketReceive_## type ##_command(Packet *p, const struct sockaddr_in *)
       
    93 #define DEF_UDP_RECEIVE_COMMAND(cls, type) void cls ##NetworkUDPSocketHandler::NetworkPacketReceive_ ## type ## _command(Packet *p, const struct sockaddr_in *client_addr)
    93 
    94 
    94 /** Base socket handler for all UDP sockets */
    95 /** Base socket handler for all UDP sockets */
    95 class NetworkUDPSocketHandler : public NetworkSocketHandler {
    96 class NetworkUDPSocketHandler : public NetworkSocketHandler {
    96 protected:
    97 protected:
    97 	NetworkRecvStatus CloseConnection();
    98 	NetworkRecvStatus CloseConnection();