On 06/24/2018 04:22 PM, Florian Weimer wrote:
* Li-yao Xia:
In nonblocking mode, the man page says that send() "would fail" if the
message is long, and then I might interpret the "Return value" paragraph
to imply that it returns -1. However a simple test in that case shows
that send() returns the number of bytes sent, which is certainly a
sensible thing to do, pragmatically.
I think this depends on the type of the socket. Which type did you
use?
For now I am considering SOCK_STREAM sockets.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html