HomePhabricator

net: extend Sock with a method to check whether connected

Description

net: extend Sock with a method to check whether connected

Summary:
This will be convenient in the I2P SAM implementation.

This is a backport of core#20685 [13/20]
https://github.com/bitcoin/bitcoin/pull/20685/commits/5bac7e45e1d3a07115b5ff002d988438fcc92a53

Depends on D11023

Test Plan:
With clang-tidy,
ninja

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D11024

Details

Provenance
Vasil Dimov <vd@FreeBSD.org>Authored on Jan 21 2021, 15:59
PiRKCommitted on Feb 11 2022, 08:06
PiRKPushed on Feb 11 2022, 08:06
Reviewer
Restricted Project
Differential Revision
D11024: net: extend Sock with a method to check whether connected
Parents
rABC485dd82c3caf: net: extend Sock with methods for robust send & read until terminator
Branches
Unknown
Tags
Unknown