Compare two socket wrappers by their underlying descriptor.
Declared in <util/sock.h>
bool
operator()(
std::shared_ptr<Sock const> const& lhs,
std::shared_ptr<Sock const> const& rhs) const;
true if both wrap the same descriptor or both are empty, false otherwise.
| Name | Description |
|---|---|
| lhs | First socket to compare (may be empty). |
| rhs | Second socket to compare (may be empty). |