diff --git a/sockets/v0/UDPSocket.h b/sockets/v0/UDPSocket.h index 9bfc0c8..86b77a2 100644 --- a/sockets/v0/UDPSocket.h +++ b/sockets/v0/UDPSocket.h @@ -37,7 +37,7 @@ class UDPSocket: public Socket { /** * UDP Socket destructor */ - ~UDPSocket(); + virtual ~UDPSocket(); /** * Open a UDP socket * Instantiates and initializes the underlying socket. Receive is started immediately after @@ -62,7 +62,7 @@ class UDPSocket: public Socket { */ socket_error_t connect(const SocketAddr *address, const uint16_t port); private: - socket_error_t open(const socket_address_family_t af, const socket_proto_family_t pf); + virtual socket_error_t open(const socket_address_family_t af, const socket_proto_family_t pf); }; } // namespace v0