18 static const auto testing_setup = MakeNoLogFileContext<>();
28 return std::make_unique<FuzzedSock>(fuzzed_data_provider);
38 if (sess.Listen(conn)) {
39 if (sess.Accept(conn)) {
42 }
catch (
const std::runtime_error&) {
50 if (sess.Connect(to, conn, proxy_error)) {
52 conn.
sock->SendComplete(
"verack\n", 10ms, interrupt);
53 }
catch (
const std::runtime_error&) {
const fs::path & GetDataDirNet() const
Get data directory path with appended network identifier.
A combination of a network address (CNetAddr) and a (TCP) port.
A helper class for interruptible sleeps.
static constexpr size_t MAX_MSG_SIZE
The maximum size of an incoming message from the I2P SAM proxy (in bytes).
std::function< std::unique_ptr< Sock >const CService &)> CreateSock
Socket factory.
An established connection with another peer.
std::unique_ptr< Sock > sock
Connected socket.
FUZZ_TARGET(i2p,.init=initialize_i2p)