prepare for sending over UDP