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:
committed by
Facebook GitHub Bot
parent
e5c822b9d4
commit
5a9ebd333d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user