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