HomePhabricator

net: introduce Sock::WaitMany()

Description

net: introduce Sock::WaitMany()

Summary:
It allows waiting concurrently on more than one socket. Being a
virtual Sock method it can be overriden by tests.

Will be used to replace CConnman::SocketEvents().

This is a partial backport of core#24356
https://github.com/bitcoin/bitcoin/pull/24356/commits/ae263460bab9e6aa112dc99790c8ef06a56ec838
Depends on D17132

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D17133

Details

Provenance
Vasil Dimov <vd@FreeBSD.org>Authored on May 4 2021, 14:24
PiRKCommitted on Mon, Nov 18, 06:42
PiRKPushed on Mon, Nov 18, 06:42
Reviewer
Restricted Project
Differential Revision
D17133: net: introduce Sock::WaitMany()
Parents
rABCf0f41147f028: net: also wait for exceptional events in Sock::Wait()
Branches
Unknown
Tags
Unknown