
Originally Posted by
laserlight
It seems to me that the man page you consulted has answered your question.
Which other sources are these?
EDIT:
My bad. Something sounded wrong to me, and I decided to check my own system's man page, and it does state what you observed. However, it also doesn't make sense: if you're going to send to something, you need to specify where to send it to, hence sockfd must designate the socket to send to. You may have spotted a bug in a man page as "sending socket" implies the opposite (if there's a "sending socket", a reasonable interpretation is that that means your program is receiving data from it, not sending data to it).