Virgil IoT KIT
|
UDP Broadcast network interface implementation. More...
#include <VSQUdpBroadcast.h>
Public Member Functions | |
VSQUdpBroadcast (quint16 port=4100) | |
Default constructor. More... | |
VSQUdpBroadcast (VSQUdpBroadcast const &)=delete | |
VSQUdpBroadcast & | operator= (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 | |
VSQNetifBase & | operator= (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... | |
UDP Broadcast network interface implementation.
VSQUdpBroadcast::VSQUdpBroadcast | ( | quint16 | port = 4100 | ) |
Default constructor.
port | UDP port. Default port is 4100 |
|
delete |
|
virtualdefault |
|
inlineoverridevirtual |
Get current connection status.
Implements VSQNetifBase.
|
overrideprotectedvirtual |
Destruct network interface.
Implements VSQNetifBase.
|
overrideprotectedvirtual |
Initialize network interface.
Implements VSQNetifBase.
|
overrideprotectedvirtual |
Get current MAC address.
Implements VSQNetifBase.
|
delete |
void VSQUdpBroadcast::restart | ( | ) |
|
overrideprotectedvirtual |
Send binary data.
data | Data to send |
Implements VSQNetifBase.