mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 18:22:57 +02:00
net: add new method Sock::SetSockOpt() that wraps setsockopt()
This will help to increase `Sock` usage and make more code mockable.
This commit is contained in:
@@ -150,6 +150,8 @@ public:
|
||||
return 0;
|
||||
}
|
||||
|
||||
int SetSockOpt(int, int, const void*, socklen_t) const override { return 0; }
|
||||
|
||||
bool Wait(std::chrono::milliseconds timeout,
|
||||
Event requested,
|
||||
Event* occurred = nullptr) const override
|
||||
|
||||
Reference in New Issue
Block a user