make
make

Reputation: 775

Does EWOULDBLOCK work for sendto()?

Could someone please tell us if EWOULDBLOCK. works sendto()? If yes! please give an example ... thanks! If not, is there anything similar to accept error?

Thanks for your replies

Upvotes: 0

Views: 642

Answers (1)

Kylotan
Kylotan

Reputation: 18449

It's not entirely clear what you're asking. A Google search for sendto and EWOULDBLOCK would imply that it can be returned, yes. Any sending operation on a socket could theoretically run out of send-buffer space, which means the operating system would have to wait until such space became available, hence EWOULDBLOCK is a reasonable value to return for a non-blocking socket.

Upvotes: 1

Related Questions