Skip to content

MPW_SendRecv does not return an error code #12

@blootsvoets

Description

@blootsvoets

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions