Reece Wilson
267c2216b0
(...missing send) [+] AuIO::Buffer::ViewReader [+] AuIO::Buffer::ViewSeekableReadable [+] AuIO::Buffer::ViewWriter [*] Clean up AuCompression [*[ AuLog messages must always crunch for memory [*] Various bug fixes [*] Refactor+clean up
30 lines
833 B
C++
30 lines
833 B
C++
/***
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: ProtocolPiece.hpp
|
|
Date: 2022-8-24
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
namespace Aurora::IO::Protocol
|
|
{
|
|
struct IProtocolNext;
|
|
struct ProtocolStack;
|
|
|
|
struct ProtocolPiece : IProtocolPiece, AuEnableSharedFromThis<ProtocolPiece>
|
|
{
|
|
ProtocolStack *pParent;
|
|
AuSPtr<IProtocolInterceptor> pInterceptor;
|
|
AuSPtr<IProtocolInterceptorEx> pInterceptorEx;
|
|
AuSPtr<IProtocolNext> pWriteInteface;
|
|
AuSPtr<ProtocolPiece> pNext;
|
|
AuByteBuffer outputBuffer;
|
|
AuSPtr<IStreamWriter> pOuputWriter;
|
|
bool bMultipleTick {};
|
|
|
|
void Remove() override;
|
|
AuSPtr<IStreamWriter> ToNextWriter() override;
|
|
AuSPtr<Memory::ByteBuffer> GetNextPieceBuffer() override;
|
|
};
|
|
} |