On which socket to wait for what events in WaitMany(). The shared_ptr is copied into the map to ensure that the Sock object is not destroyed (its destructor would close the underlying socket). If this happens shortly before or after we call poll(2) and a new socket gets created under the same file descriptor number then the report from WaitMany() will be bogus.

Synopsis

Declared in <util/sock.h>

using EventsPerSock = std::unordered_map<std::shared_ptr<Sock const>, Events, HashSharedPtrSock, EqualSharedPtrSock>;

Created with MrDocs