Create new callback function which implement rx and tx of udp