SNAP network interface base class.
More...
#include <VSQNetifBase.h>
|
virtual bool | init ()=0 |
| Initialize network interface. More...
|
|
virtual bool | deinit ()=0 |
| Destruct network interface. More...
|
|
virtual bool | tx (const QByteArray &data)=0 |
| Send binary data. More...
|
|
virtual QString | macAddr () const =0 |
| Get current MAC address. More...
|
|
bool | processData (const QByteArray &data) |
| Process packet data. More...
|
|
SNAP network interface base class.
◆ VSQNetifBase() [1/2]
VSQNetifBase::VSQNetifBase |
( |
| ) |
|
◆ VSQNetifBase() [2/2]
◆ ~VSQNetifBase()
virtual VSQNetifBase::~VSQNetifBase |
( |
| ) |
|
|
virtualdefault |
◆ connectionState()
virtual QAbstractSocket::SocketState VSQNetifBase::connectionState |
( |
| ) |
const |
|
pure virtual |
Get current connection status.
- Warning
- You have to implement this function in a child class
- Returns
- Current connection status
Implemented in VSQUdpBroadcast.
◆ deinit()
virtual bool VSQNetifBase::deinit |
( |
| ) |
|
|
protectedpure virtual |
Destruct network interface.
- Warning
- You have to implement this function in a child class
- Returns
- true in case of success
Implemented in VSQUdpBroadcast.
◆ fireNewPacket
Signal "New packet has been received".
- Parameters
-
◆ fireStateChanged
void VSQNetifBase::fireStateChanged |
( |
QAbstractSocket::SocketState |
connectionState | ) |
|
|
signal |
Signal "State has been changed".
- Parameters
-
connectionState | Current connection state |
◆ init()
virtual bool VSQNetifBase::init |
( |
| ) |
|
|
protectedpure virtual |
Initialize network interface.
- Warning
- You have to implement this function in a child class
- Returns
- true in case of success
Implemented in VSQUdpBroadcast.
◆ lowLevelNetif()
VirgilIoTKit::vs_netif_t* VSQNetifBase::lowLevelNetif |
( |
| ) |
|
|
inline |
Get network interface.
- Returns
- vs_netif_t network interface
◆ macAddr()
virtual QString VSQNetifBase::macAddr |
( |
| ) |
const |
|
protectedpure virtual |
Get current MAC address.
- Warning
- You have to implement this function in a child class
- Returns
- Current MAC address
Implemented in VSQUdpBroadcast.
◆ operator=()
◆ processData()
bool VSQNetifBase::processData |
( |
const QByteArray & |
data | ) |
|
|
protected |
Process packet data.
- Parameters
-
- Returns
- true if data was processed successfully
◆ tx()
virtual bool VSQNetifBase::tx |
( |
const QByteArray & |
data | ) |
|
|
protectedpure virtual |
Send binary data.
- Warning
- You have to implement this function in a child class
- Parameters
-
- Returns
- true in case of success
Implemented in VSQUdpBroadcast.
The documentation for this class was generated from the following file: