using c instead of python for udp sned