[#Sock-EventsPerSock] = xref:Sock.adoc[Sock]::EventsPerSock :relfileprefix: ../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using EventsPerSock = std::unordered_map<std::shared_ptr<Sock const>, Events, HashSharedPtrSock, EqualSharedPtrSock>; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#