Navigation
API > API/Developer > API/Developer/TraceAnalysis
Creates a stream to directly consume a trace stream from the tracing application. Sets up a listening socket and stream is not considered ready until a connection is made. If a valid file writer is provided during construction, the trace data will also be written to disk.
| Name | FDirectSocketStream |
| Type | class |
| Header File | /Engine/Source/Developer/TraceAnalysis/Public/Trace/DataStream.h |
| Include Path | #include "Trace/DataStream.h" |
Syntax
class FDirectSocketStream :
public UE::Trace::IInDataStream ,
public FRunnable
Inheritance Hierarchy
- FRunnable → FDirectSocketStream
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Trace/DataStream.h | |||
FDirectSocketStream
(
TUniquePtr< FArchiveFileWriterGeneric >&& InFileWriter |
Trace/DataStream.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FDirectSocketStream() |
Trace/DataStream.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AsioContext | TUniquePtr< struct FDirectSocketContext > | Trace/DataStream.h | ||
| ConnectionEvent | FEvent * | Trace/DataStream.h | ||
| FileWriter | TUniquePtr< FArchiveFileWriterGeneric > | Trace/DataStream.h | ||
| InternalStream | TUniquePtr< class FTraceDataStream > | Trace/DataStream.h | ||
| ListeningThread | TUniquePtr< class FRunnableThread > | Trace/DataStream.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool BindToExistingConnection
(
FSocket&& ExistingConnectedSocket |
Bind this instance to an existing connection that has already been established. | Trace/DataStream.h | |
uint16 StartListening
(
uint16 Port |
Initiates listening sockets. Must be called before attempting to read from the stream. | Trace/DataStream.h |