> I'd like to know what advantage if any, there is in using
> send() [ or sendto(), or sendmsg()], over plain old
> write()
> I'd also be hapy to leran if there's a more appropriate newsgroup :-)
write() can only be used with TCP connections.
sendto() and send() are only for UDP (datagrams)
So what you use depends on the type of connection you have. Remember, TCP
is a stream of data, no message boundaries. UDP must use fixed-size packets.
And remember UDP packets can get lost, and it's up to you to make the reliable
by resending lost packets, while TCP takes care of that for you.
GREG