Skip to content
Snippets Groups Projects
Verified Commit 74062589 authored by Benny Baumann's avatar Benny Baumann
Browse files

add: Allow for fd validity check directly in auto_fd object

parent 4e82034d
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,10 @@ namespace rmrf::net {
_fd = fd;
}
inline bool valid() const {
return _fd >= 0;
}
};
inline bool operator==(const auto_fd &x, const auto_fd &y) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment