Private transport parser; buffers framing, never correction payloads. More...
#include <NTRIPHttpCodec.h>
Classes | |
| struct | Status |
| struct | Result |
Public Member Functions | |
| NTRIPHttpDecoder (NTRIPHttpPurpose purpose=NTRIPHttpPurpose::Corrections) | |
| void | reset () |
| Result | feed (QByteArrayView bytes, const QDateTime &utcNow) |
| Result | finish () |
| bool | awaitingErrorBody () const |
Static Public Member Functions | |
| static Status | parseStatusLine (QByteArrayView line) |
Static Public Attributes | |
| static constexpr qsizetype | MAX_HEADER_BYTES = 32768 |
| static constexpr qsizetype | MAX_LINE_BYTES = 8192 |
| static constexpr quint64 | MAX_CHUNK_BYTES = 16 * 1024 * 1024 |
| static constexpr qsizetype | MAX_ERROR_BODY_BYTES = 500 |
| static constexpr qsizetype | MAX_ERROR_PREVIEW_CHARS = 200 |
Private transport parser; buffers framing, never correction payloads.
Definition at line 32 of file NTRIPHttpCodec.h.
|
inlineexplicit |
|
inline |
Definition at line 67 of file NTRIPHttpCodec.h.
| NTRIPHttpDecoder::Result NTRIPHttpDecoder::feed | ( | QByteArrayView | bytes, |
| const QDateTime & | utcNow ) |
Definition at line 140 of file NTRIPHttpCodec.cc.
References NTRIPHttpDecoder::Result::body, NTRIPHttpDecoder::Result::complete, MAX_ERROR_BODY_BYTES, MAX_HEADER_BYTES, and MAX_LINE_BYTES.
| NTRIPHttpDecoder::Result NTRIPHttpDecoder::finish | ( | ) |
Definition at line 382 of file NTRIPHttpCodec.cc.
References NTRIPHttpDecoder::Result::complete.
|
static |
Definition at line 94 of file NTRIPHttpCodec.cc.
| void NTRIPHttpDecoder::reset | ( | ) |
Definition at line 89 of file NTRIPHttpCodec.cc.
References NTRIPHttpDecoder().
|
staticconstexpr |
Definition at line 44 of file NTRIPHttpCodec.h.
|
staticconstexpr |
Definition at line 45 of file NTRIPHttpCodec.h.
Referenced by feed().
|
staticconstexpr |
Definition at line 46 of file NTRIPHttpCodec.h.
|
staticconstexpr |
Definition at line 42 of file NTRIPHttpCodec.h.
Referenced by feed().
|
staticconstexpr |
Definition at line 43 of file NTRIPHttpCodec.h.
Referenced by feed().