diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2021-05-04 18:37:19 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2022-06-09 16:20:24 +0200 |
commit | 6e68ccbefea6509c61fc4405a391a517c6057bb0 (patch) | |
tree | 3f7b5edd0777446c4693e0b886911a60fd2e31ab /test | |
parent | ae263460bab9e6aa112dc99790c8ef06a56ec838 (diff) | |
download | bitcoin-6e68ccbefea6509c61fc4405a391a517c6057bb0.tar.xz |
net: use Sock::WaitMany() instead of CConnman::SocketEvents()
Rename `GenerateSelectSet()` to `GenerateWaitSockets()` and adapt it to
generate a wait data suitable for `Sock::WaitMany()`. Then call it from
`CConnman::SocketHandler()` and feed the generated data to
`Sock::WaitMany()`.
This way `CConnman::SocketHandler()` can be unit tested because
`Sock::WaitMany()` is mockable, so the usage of real sockets can be
avoided.
Resolves https://github.com/bitcoin/bitcoin/issues/21744
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions