You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would allow error checking by the calling application. Just returning -1 is usually enough. I think a ::recv status of 0 should also be considered an error if it was successfully ::select-ed. From the recv() man page
RETURN VALUES
These calls return the number of bytes received, or -1 if an error
occurred.
For TCP sockets, the return value 0 means the peer has closed its half
side of the connection.
The text was updated successfully, but these errors were encountered:
Indeed, this issue was solved in the latest commit. However, I don't know if you want to implement a same kind of construction for the other functions? For MTO it's not necessary but maybe for other users?
This would allow error checking by the calling application. Just returning -1 is usually enough. I think a
::recv
status of 0 should also be considered an error if it was successfully::select
-ed. From therecv()
man pageThe text was updated successfully, but these errors were encountered: