AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Syntax:     int sendto(int s, char *msg, int len, int flags, const struct sockaddr *to, int tolen);
Header:     NetLib -     sys/socket.h
     Sockets -     socklib.h
     UnixLib -     sys/socket.h

Returns:     amount of data sent, or EOF if error

This call performs the same job as Socket_Send or send(), except that the remote address is specified so that it can be used on unconnected sockets. This call is only useful for sockets that do not require a connection such as those using the UDP protocol. For sockets that require a connection such as those using the TCP protocol, you need to call Socket_Connect or connect() before you can use this routine, and the address given to this call is then ignored anyway.

C definition     SWI definition

[sh-index] Back to list of manuals