1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-07 22:46:22 +03:00

Move core functionality to QuicTransportBaseLite [3/n]

Summary: See title.

Reviewed By: mjoras

Differential Revision: D63917728

fbshipit-source-id: 4e5389c1747b59cf30fea37ed9e5802007f2e49b
This commit is contained in:
Aman Sharma
2024-10-08 11:12:03 -07:00
committed by Facebook GitHub Bot
parent e5c822b9d4
commit 5a9ebd333d
6 changed files with 34 additions and 33 deletions

View File

@@ -186,18 +186,10 @@ QuicTransportBase::~QuicTransportBase() {
DCHECK(!socket_.get()); // should be no socket
}
bool QuicTransportBase::good() const {
return closeState_ == CloseState::OPEN && hasWriteCipher() && !error();
}
bool QuicTransportBase::replaySafe() const {
return (conn_->oneRttWriteCipher != nullptr);
}
bool QuicTransportBase::error() const {
return conn_->localConnectionError.has_value();
}
void QuicTransportBase::close(Optional<QuicError> errorCode) {
[[maybe_unused]] auto self = sharedGuard();
// The caller probably doesn't need a conn callback any more because they