I want to send only one short value in a UDP packet, but running the command
echo -n \"hello\" | nc -4u localhost 8000
I can see that the serve
Netcat sends one packet per newline. So you're fine. If you do anything more complex then you might need something else.
I was fooling around with Wireshark when I realized this. Don't know if it helps.