AuroraRuntime/Include/Aurora/IO/IOPipeCallback.hpp

37 lines
725 B
C++
Raw Normal View History

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: IIOBufferedStreamAvailable.hpp
Date: 2022-6-20
Author: Reece
***/
#pragma once
namespace Aurora::IO
{
namespace Protocol
{
struct IProtocolStack;
}
struct IIOPipeInterceptor;
struct IIOBufferedStreamAvailable;
struct IOPipeCallback
{
EPipeCallbackType type;
struct
{
2022-08-29 15:46:46 +00:00
AuSPtr<IIOBufferedStreamAvailable> pOnData;
} handleBufferedStream;
struct
{
2022-08-29 15:46:46 +00:00
AuSPtr<IIOPipeInterceptor> pIntercepter;
AuSPtr<IStreamWriter> pWriter;
bool bFlushWriter {true};
} forwardStream;
};
}