QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
NTRIPHttpDecoder Class Reference

Private transport parser; buffers framing, never correction payloads. More...

#include <NTRIPHttpCodec.h>

Classes

struct  Result
 
struct  Status
 

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
 

Detailed Description

Private transport parser; buffers framing, never correction payloads.

Definition at line 31 of file NTRIPHttpCodec.h.

Constructor & Destructor Documentation

◆ NTRIPHttpDecoder()

NTRIPHttpDecoder::NTRIPHttpDecoder ( NTRIPHttpPurpose  purpose = NTRIPHttpPurpose::Corrections)
inlineexplicit

Definition at line 34 of file NTRIPHttpCodec.h.

Member Function Documentation

◆ awaitingErrorBody()

bool NTRIPHttpDecoder::awaitingErrorBody ( ) const
inline

Definition at line 63 of file NTRIPHttpCodec.h.

Referenced by NTRIPHttpSession::awaitingErrorBody().

◆ feed()

NTRIPHttpDecoder::Result NTRIPHttpDecoder::feed ( QByteArrayView  bytes,
const QDateTime &  utcNow 
)

◆ finish()

NTRIPHttpDecoder::Result NTRIPHttpDecoder::finish ( )

Definition at line 387 of file NTRIPHttpCodec.cc.

References NTRIPHttpDecoder::Result::complete.

◆ parseStatusLine()

NTRIPHttpDecoder::Status NTRIPHttpDecoder::parseStatusLine ( QByteArrayView  line)
static

Definition at line 99 of file NTRIPHttpCodec.cc.

◆ reset()

void NTRIPHttpDecoder::reset ( )

Definition at line 94 of file NTRIPHttpCodec.cc.

Member Data Documentation

◆ MAX_CHUNK_BYTES

constexpr quint64 NTRIPHttpDecoder::MAX_CHUNK_BYTES = 16 * 1024 * 1024
staticconstexpr

Definition at line 40 of file NTRIPHttpCodec.h.

◆ MAX_ERROR_BODY_BYTES

constexpr qsizetype NTRIPHttpDecoder::MAX_ERROR_BODY_BYTES = 500
staticconstexpr

Definition at line 41 of file NTRIPHttpCodec.h.

Referenced by feed().

◆ MAX_ERROR_PREVIEW_CHARS

constexpr qsizetype NTRIPHttpDecoder::MAX_ERROR_PREVIEW_CHARS = 200
staticconstexpr

Definition at line 42 of file NTRIPHttpCodec.h.

◆ MAX_HEADER_BYTES

constexpr qsizetype NTRIPHttpDecoder::MAX_HEADER_BYTES = 32768
staticconstexpr

Definition at line 38 of file NTRIPHttpCodec.h.

Referenced by feed().

◆ MAX_LINE_BYTES

constexpr qsizetype NTRIPHttpDecoder::MAX_LINE_BYTES = 8192
staticconstexpr

Definition at line 39 of file NTRIPHttpCodec.h.

Referenced by feed().


The documentation for this class was generated from the following files: