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

#include <UdpIODevice.h>

+ Inheritance diagram for UdpIODevice:
+ Collaboration diagram for UdpIODevice:

Public Member Functions

 UdpIODevice (QObject *parent=nullptr)
 
 ~UdpIODevice ()
 
bool canReadLine () const override
 
qint64 readLineData (char *data, qint64 maxSize) override
 
qint64 readData (char *data, qint64 maxSize) override
 
bool isSequential () const override
 

Detailed Description

UdpIODevice provides a QIODevice interface over a QUdpSocket in server mode. It allows line-based reading using canReadLine() and readLineData() even when the socket is in bound mode.

Definition at line 11 of file UdpIODevice.h.

Constructor & Destructor Documentation

◆ UdpIODevice()

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

Definition at line 6 of file UdpIODevice.cc.

◆ ~UdpIODevice()

UdpIODevice::~UdpIODevice ( )

Definition at line 14 of file UdpIODevice.cc.

Member Function Documentation

◆ canReadLine()

bool UdpIODevice::canReadLine ( ) const
override

Definition at line 19 of file UdpIODevice.cc.

◆ isSequential()

bool UdpIODevice::isSequential ( ) const
inlineoverride

Definition at line 22 of file UdpIODevice.h.

◆ readData()

qint64 UdpIODevice::readData ( char *  data,
qint64  maxSize 
)
override

Definition at line 38 of file UdpIODevice.cc.

◆ readLineData()

qint64 UdpIODevice::readLineData ( char *  data,
qint64  maxSize 
)
override

Definition at line 24 of file UdpIODevice.cc.


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