[+] also gonna impl this flush

This commit is contained in:
Reece Wilson 2023-06-04 20:52:22 +01:00
parent bbd4679bed
commit 78091bf84b

View File

@ -148,6 +148,14 @@ namespace Aurora::IO::Net
pChannel->pParent_->Shutdown(false);
}
}
virtual void Flush() override
{
if (auto pChannel = AuTryLockMemoryType(this->swpChannel))
{
pChannel->pParent_->ToChannel()->ScheduleOutOfFrameWrite();
}
}
};
return this->pCachedWriter = AuMakeSharedThrow<A>(this->AsWritableByteBuffer(), AuSPtr<SocketChannel>(this->pParent_->SharedFromThis(), this));