|
ICP
1
|
#include <TCPEventStreamDefs.h>
Public Types | |
| enum | StreamDataType { InvalidStream =0, Setup =1, Neutron =2, SE =3 } |
Public Member Functions | |
| TCPStreamEventHeader () | |
| TCPStreamEventHeader (uint32_t type_) | |
| bool | isValid () const |
| uint32_t | majorVersion () const |
| uint32_t | minorVersion () const |
Public Attributes | |
| uint32_t | marker1 |
| always 0xffffffff More... | |
| uint32_t | marker2 |
| always 0xffffffff More... | |
| uint32_t | version |
| should be TCPStreamEventHeader::current_version More... | |
| uint32_t | length |
| this packet size in bytes More... | |
| uint32_t | type |
| StreamDataType More... | |
Static Public Attributes | |
| static const uint32_t | marker = 0xffffffff |
| magic value for marker1, marker2 More... | |
| static const uint32_t | major_version = 1 |
| starts at 1, then incremented whenever layout of this or further packets changes in a non backward compatible way More... | |
| static const uint32_t | minor_version = 0 |
| reset to 0 in major version change, then incremented whenever layout of this or further packets changes in a backward compatible way More... | |
| static const uint32_t | current_version = (major_version << 16) | minor_version |
| starts at 1, then incremented whenever layout of this or further packets changes More... | |
this structure is provided at the start of a packet if a stream gets corrupt, you could look for two consecutive 0xffffffff (marker1, marker2) to find a starting point to continue the stream
Definition at line 17 of file TCPEventStreamDefs.h.
| Enumerator | |
|---|---|
| InvalidStream | |
| Setup | |
| Neutron | |
| SE | |
Definition at line 25 of file TCPEventStreamDefs.h.
|
inline |
Definition at line 27 of file TCPEventStreamDefs.h.
Referenced by isValid().
|
inline |
Definition at line 28 of file TCPEventStreamDefs.h.
|
inline |
Definition at line 29 of file TCPEventStreamDefs.h.
References InvalidStream, length, major_version, majorVersion(), marker, marker1, marker2, minor_version, minorVersion(), TCPStreamEventHeader(), and type.
Referenced by TCPStreamEventDataNeutron::isValid(), TCPStreamEventDataSetup::isValid(), and EventsToolApp::liveData().
|
inline |
|
inline |
|
static |
starts at 1, then incremented whenever layout of this or further packets changes
Definition at line 32 of file TCPEventStreamDefs.h.
| uint32_t TCPStreamEventHeader::length |
this packet size in bytes
Definition at line 22 of file TCPEventStreamDefs.h.
Referenced by isValid(), and EventsToolApp::liveData().
|
static |
starts at 1, then incremented whenever layout of this or further packets changes in a non backward compatible way
Definition at line 30 of file TCPEventStreamDefs.h.
Referenced by isValid().
|
static |
magic value for marker1, marker2
Definition at line 26 of file TCPEventStreamDefs.h.
Referenced by isValid().
| uint32_t TCPStreamEventHeader::marker1 |
| uint32_t TCPStreamEventHeader::marker2 |
|
static |
reset to 0 in major version change, then incremented whenever layout of this or further packets changes in a backward compatible way
Definition at line 31 of file TCPEventStreamDefs.h.
Referenced by isValid().
| uint32_t TCPStreamEventHeader::type |
Definition at line 23 of file TCPEventStreamDefs.h.
Referenced by isValid(), TCPStreamEventDataNeutron::isValid(), TCPStreamEventDataSetup::isValid(), and EventsToolApp::liveData().
| uint32_t TCPStreamEventHeader::version |
should be TCPStreamEventHeader::current_version
Definition at line 21 of file TCPEventStreamDefs.h.
Referenced by majorVersion(), and minorVersion().
1.8.5