Skip to content

Class QfNtripSocket

ClassList > QfNtripSocket

A simple NTRIP socket.

  • #include <qfntripclient.h>

Inherits the following classes: QObject

Public Signals

Type Name
signal void correctionDataReceived (const QByteArray & data)
Emmitted when the socket has received data from an NTRIP server.
signal void errorOccurred (const QString & message, bool isPermanent)
Emmitted when an error occured while the socket communicates with an NTRIP server.
signal void streamConnected
Emitted when the socket has successfully connected to an NTRIP server.
signal void streamDisconnected
Emitted when the socket has disconnected from an NTRIP server.

Public Functions

Type Name
QfNtripSocket (QObject * parent=nullptr)
The NTRIP socket constructor.
void abort ()
Abort any socket connection to an NTRIP server.
qint64 connectToHost (const QfNtripSettings & ntripSettings)
qint64 writeNmeaSentence (const QByteArray & sentence)
Write an NMEA sentence to the NTRIP server.
~QfNtripSocket () noexcept override
The NTRIP socket destructor.

Public Signals Documentation

signal correctionDataReceived

Emmitted when the socket has received data from an NTRIP server.

void QfNtripSocket::correctionDataReceived;


signal errorOccurred

Emmitted when an error occured while the socket communicates with an NTRIP server.

void QfNtripSocket::errorOccurred;


signal streamConnected

Emitted when the socket has successfully connected to an NTRIP server.

void QfNtripSocket::streamConnected;


signal streamDisconnected

Emitted when the socket has disconnected from an NTRIP server.

void QfNtripSocket::streamDisconnected;


Public Functions Documentation

function QfNtripSocket

The NTRIP socket constructor.

explicit QfNtripSocket::QfNtripSocket (
    QObject * parent=nullptr
) 


function abort

Abort any socket connection to an NTRIP server.

void QfNtripSocket::abort () 


function connectToHost

qint64 QfNtripSocket::connectToHost (
    const QfNtripSettings & ntripSettings
) 

Connects the socket to an NTRIP server

Parameters:

  • ntripSettings the NTRIP settings object

function writeNmeaSentence

Write an NMEA sentence to the NTRIP server.

qint64 QfNtripSocket::writeNmeaSentence (
    const QByteArray & sentence
) 


function ~QfNtripSocket

The NTRIP socket destructor.

QfNtripSocket::~QfNtripSocket () noexcept override



The documentation for this class was generated from the following file src/core/positioning/qfntripclient.h