Set udp socket to blocking mode.