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:
Vasil Dimov
2021-04-13 12:31:49 +02:00
parent e14f0fa6a3
commit 184e56d668
5 changed files with 32 additions and 0 deletions

View File

@@ -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