Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socketman: add specific error code return values #14

Open
avsa242 opened this issue Nov 27, 2023 · 0 comments
Open

socketman: add specific error code return values #14

avsa242 opened this issue Nov 27, 2023 · 0 comments
Assignees
Labels
cleanup Code style or consistency cleanup

Comments

@avsa242
Copy link
Owner

avsa242 commented Nov 27, 2023

Currently, -1 is used as a return value for errors. Add some error code symbols for specific errors and use those.
Also, some statements return -1 when a non-error value is probably ok (for example an unsolicited incoming connection attempt that was rejected with a RST wouldn't necessarily need to error out...just drop it).

@avsa242 avsa242 added the cleanup Code style or consistency cleanup label Nov 27, 2023
@avsa242 avsa242 self-assigned this Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code style or consistency cleanup
Projects
None yet
Development

No branches or pull requests

1 participant