Implement basic udp write functionality.