sendto
commonly used with unbound UDP sockets or with raw sockets. It takes a parameter that defines the address / port of the packet receiver. send
and write
do not have this parameter, so there is no way to tell the data where to go.
send
used with TCP sockets and connected UDP sockets. Since the connection is established, the destination does not need to be specified, and in fact this function does not have a parameter for one.
write
, send
, flags
, TCP. , send
, , - , . write
, IP_HDRINCL
, , , send
.