diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2021-04-13 16:43:04 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2022-05-18 16:40:13 +0200 |
commit | b2733ab6a85b234a88b83bdc77a0d043e18385b3 (patch) | |
tree | 89ebd1d42740c4923a7682b852668078136574dd /src/test/fuzz/util.h | |
parent | 3ad7de225efce3e76530f56bee8a8f7a75ea0f3c (diff) |
net: add new method Sock::Listen() that wraps listen()
This will help to increase `Sock` usage and make more code mockable.
Diffstat (limited to 'src/test/fuzz/util.h')
-rw-r--r-- | src/test/fuzz/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/fuzz/util.h b/src/test/fuzz/util.h index f0f9e50698..f1c31e63d1 100644 --- a/src/test/fuzz/util.h +++ b/src/test/fuzz/util.h @@ -66,6 +66,8 @@ public: int Bind(const sockaddr*, socklen_t) const override; + int Listen(int backlog) const override; + std::unique_ptr<Sock> Accept(sockaddr* addr, socklen_t* addr_len) const override; int GetSockOpt(int level, int opt_name, void* opt_val, socklen_t* opt_len) const override; |