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

#include <UdpForwarder.h>

+ Inheritance diagram for UdpForwarder:
+ Collaboration diagram for UdpForwarder:

Public Member Functions

 UdpForwarder (QObject *parent=nullptr)
 
 ~UdpForwarder () override
 
bool configure (const QString &address, quint16 port)
 
void forward (const QByteArray &data)
 
void stop ()
 
bool isEnabled () const
 
QString address () const
 
quint16 port () const
 

Detailed Description

Definition at line 11 of file UdpForwarder.h.

Constructor & Destructor Documentation

◆ UdpForwarder()

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

Definition at line 9 of file UdpForwarder.cc.

◆ ~UdpForwarder()

UdpForwarder::~UdpForwarder ( )
override

Definition at line 11 of file UdpForwarder.cc.

References stop().

Member Function Documentation

◆ address()

QString UdpForwarder::address ( ) const
inline

Definition at line 25 of file UdpForwarder.h.

Referenced by configure().

◆ configure()

bool UdpForwarder::configure ( const QString &  address,
quint16  port 
)

Definition at line 16 of file UdpForwarder.cc.

References address(), port(), and stop().

◆ forward()

void UdpForwarder::forward ( const QByteArray &  data)

Definition at line 35 of file UdpForwarder.cc.

◆ isEnabled()

bool UdpForwarder::isEnabled ( ) const
inline

Definition at line 23 of file UdpForwarder.h.

◆ port()

quint16 UdpForwarder::port ( ) const
inline

Definition at line 27 of file UdpForwarder.h.

Referenced by configure().

◆ stop()

void UdpForwarder::stop ( )

Definition at line 49 of file UdpForwarder.cc.

Referenced by configure(), and ~UdpForwarder().


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