data transfer for UDP mode