Use functions of gt_socket.c to write UDP client.