equal
deleted
inserted
replaced
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(); |