[+] ISocketChannel::GetNextFrameTargetLength
[+] ISocketChannel::SetNextFrameTargetLength
This commit is contained in:
parent
cb60e77c63
commit
240685f7a6
@ -76,6 +76,18 @@ namespace Aurora::IO::Net
|
|||||||
*/
|
*/
|
||||||
virtual void SpecifySendProtocol(const AuSPtr<Protocol::IProtocolStack> &pSendProtocol) = 0;
|
virtual void SpecifySendProtocol(const AuSPtr<Protocol::IProtocolStack> &pSendProtocol) = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief
|
||||||
|
* @param uNextFrameSize
|
||||||
|
*/
|
||||||
|
virtual void SetNextFrameTargetLength(AuUInt uNextFrameSize) = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
virtual AuUInt GetNextFrameTargetLength() = 0;
|
||||||
|
|
||||||
//
|
//
|
||||||
// The following specify functions are to be used before the socket has established / during preestablish.
|
// The following specify functions are to be used before the socket has established / during preestablish.
|
||||||
// Exceptions will be noted.
|
// Exceptions will be noted.
|
||||||
|
@ -282,6 +282,17 @@ namespace Aurora::IO::Net
|
|||||||
this->pCachedWriter.reset();
|
this->pCachedWriter.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void SocketChannel::SetNextFrameTargetLength(AuUInt uNextFrameSize)
|
||||||
|
{
|
||||||
|
(void)this->inputChannel.pNetReader->SetNextFrameTargetLength(uNextFrameSize);
|
||||||
|
}
|
||||||
|
|
||||||
|
AuUInt SocketChannel::GetNextFrameTargetLength()
|
||||||
|
{
|
||||||
|
return this->inputChannel.pNetReader->GetNextFrameTargetLength();
|
||||||
|
}
|
||||||
|
|
||||||
AuSPtr<ISocketStats> SocketChannel::GetRecvStats()
|
AuSPtr<ISocketStats> SocketChannel::GetRecvStats()
|
||||||
{
|
{
|
||||||
return AuSPtr<ISocketStats>(this->pParent_->SharedFromThis(), &this->recvStats_);
|
return AuSPtr<ISocketStats>(this->pParent_->SharedFromThis(), &this->recvStats_);
|
||||||
|
@ -64,6 +64,11 @@ namespace Aurora::IO::Net
|
|||||||
|
|
||||||
AuSPtr<Protocol::IProtocolStack> NewProtocolSendStack() override;
|
AuSPtr<Protocol::IProtocolStack> NewProtocolSendStack() override;
|
||||||
|
|
||||||
|
void SetNextFrameTargetLength(AuUInt uNextFrameSize) override;
|
||||||
|
|
||||||
|
AuUInt GetNextFrameTargetLength() override;
|
||||||
|
|
||||||
|
|
||||||
void SpecifyRecvProtocol(const AuSPtr<Protocol::IProtocolStack> &pRecvProtocol) override;
|
void SpecifyRecvProtocol(const AuSPtr<Protocol::IProtocolStack> &pRecvProtocol) override;
|
||||||
|
|
||||||
void SpecifySendProtocol(const AuSPtr<Protocol::IProtocolStack> &pSendProtocol) override;
|
void SpecifySendProtocol(const AuSPtr<Protocol::IProtocolStack> &pSendProtocol) override;
|
||||||
|
Loading…
Reference in New Issue
Block a user