diff options
Diffstat (limited to 'src/network/core/udp.h')
-rw-r--r-- | src/network/core/udp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/core/udp.h b/src/network/core/udp.h index 1d09675ef..e2ac876a9 100644 --- a/src/network/core/udp.h +++ b/src/network/core/udp.h @@ -120,8 +120,9 @@ protected: * the grfconfig list of the NetworkGameInfo. * @param config the GRF to handle */ - virtual void HandleIncomingNetworkGameInfoGRFConfig(GRFConfig *config) { NOT_REACHED(); } + virtual void HandleIncomingNetworkGameInfoGRFConfig(GRFConfig *config) = 0; public: + /** On destructing of this class, the socket needs to be closed */ virtual ~NetworkUDPSocketHandler() { this->Close(); } bool Listen(uint32 host, uint16 port, bool broadcast); |