UDPSocket has the same methods as Socket, the only difference is that it initializes a udp socket by itself.
class UDPSocket : public Socket { public: UDPSocket() : Socket(SOCK_DGRAM, IPPROTO_UDP) {} };