diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2021-04-13 12:31:49 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2022-04-15 09:14:49 +0200 |
commit | 184e56d6683d05fc84f5153cfff83a2e32883556 (patch) | |
tree | 33fe88e870ac0196ecf245be57a02e98afb0d561 /src/test/util | |
parent | e14f0fa6a346afecbb1d5470aef5226a8cc33e57 (diff) |
net: add new method Sock::SetSockOpt() that wraps setsockopt()
This will help to increase `Sock` usage and make more code mockable.
Diffstat (limited to 'src/test/util')
-rw-r--r-- | src/test/util/net.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/util/net.h b/src/test/util/net.h index 20c45058a1..e980fe4967 100644 --- a/src/test/util/net.h +++ b/src/test/util/net.h @@ -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 |