Virgil IoT KIT
Public Member Functions | Protected Member Functions
VSQUdpBroadcast Class Referencefinal

UDP Broadcast network interface implementation. More...

#include <VSQUdpBroadcast.h>

Inheritance diagram for VSQUdpBroadcast:
Inheritance graph
[legend]
Collaboration diagram for VSQUdpBroadcast:
Collaboration graph
[legend]

Public Member Functions

 VSQUdpBroadcast (quint16 port=4100)
 Default constructor. More...
 
 VSQUdpBroadcast (VSQUdpBroadcast const &)=delete
 
VSQUdpBroadcastoperator= (VSQUdpBroadcast const &)=delete
 
virtual ~VSQUdpBroadcast ()=default
 
QAbstractSocket::SocketState connectionState () const override
 Get current connection status. More...
 
void restart ()
 
- Public Member Functions inherited from VSQNetifBase
 VSQNetifBase ()
 Default constructor. More...
 
 VSQNetifBase (VSQNetifBase const &)=delete
 
VSQNetifBaseoperator= (VSQNetifBase const &)=delete
 
virtual ~VSQNetifBase ()=default
 
VirgilIoTKit::vs_netif_t * lowLevelNetif ()
 Get network interface. More...
 

Protected Member Functions

bool init () override
 Initialize network interface. More...
 
bool deinit () override
 Destruct network interface. More...
 
bool tx (const QByteArray &data) override
 Send binary data. More...
 
QString macAddr () const override
 Get current MAC address. More...
 
- Protected Member Functions inherited from VSQNetifBase
bool processData (const QByteArray &data)
 Process packet data. More...
 

Additional Inherited Members

- Signals inherited from VSQNetifBase
void fireStateChanged (QAbstractSocket::SocketState connectionState)
 Signal "State has been changed". More...
 
void fireNewPacket (VSQSnapPacket packet)
 Signal "New packet has been received". More...
 

Detailed Description

UDP Broadcast network interface implementation.

Constructor & Destructor Documentation

◆ VSQUdpBroadcast() [1/2]

VSQUdpBroadcast::VSQUdpBroadcast ( quint16  port = 4100)

Default constructor.

Parameters
portUDP port. Default port is 4100

◆ VSQUdpBroadcast() [2/2]

VSQUdpBroadcast::VSQUdpBroadcast ( VSQUdpBroadcast const &  )
delete

◆ ~VSQUdpBroadcast()

virtual VSQUdpBroadcast::~VSQUdpBroadcast ( )
virtualdefault

Member Function Documentation

◆ connectionState()

QAbstractSocket::SocketState VSQUdpBroadcast::connectionState ( ) const
inlineoverridevirtual

Get current connection status.

Warning
You have to implement this function in a child class
Returns
Current connection status

Implements VSQNetifBase.

◆ deinit()

bool VSQUdpBroadcast::deinit ( )
overrideprotectedvirtual

Destruct network interface.

Warning
You have to implement this function in a child class
Returns
true in case of success

Implements VSQNetifBase.

◆ init()

bool VSQUdpBroadcast::init ( )
overrideprotectedvirtual

Initialize network interface.

Warning
You have to implement this function in a child class
Returns
true in case of success

Implements VSQNetifBase.

◆ macAddr()

QString VSQUdpBroadcast::macAddr ( ) const
overrideprotectedvirtual

Get current MAC address.

Warning
You have to implement this function in a child class
Returns
Current MAC address

Implements VSQNetifBase.

◆ operator=()

VSQUdpBroadcast& VSQUdpBroadcast::operator= ( VSQUdpBroadcast const &  )
delete

◆ restart()

void VSQUdpBroadcast::restart ( )

◆ tx()

bool VSQUdpBroadcast::tx ( const QByteArray &  data)
overrideprotectedvirtual

Send binary data.

Warning
You have to implement this function in a child class
Parameters
dataData to send
Returns
true in case of success

Implements VSQNetifBase.


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