Hey,
it would help to check the man page for the send(2) system call.
"The send() call may be used only when the socket is in a connected state (so that the intended recipient is known)." As per definition, UDP is never in a connected state, so that you can't use send(2) instead of sendto(2).
- Andi -
|