add the udp one

make me more clear about these functions when changing it from TCP to
UDP