A RealTimeSource
which reads from a UDP socket.
More...
#include <realtimeudpconnection.h>
A RealTimeSource
which reads from a UDP socket.
virtual bool RealTimeUdpConnection::isConnected |
( |
| ) |
const |
|
overridevirtual |
virtual QString RealTimeUdpConnection::name |
( |
| ) |
const |
|
overridevirtual |
The UDP address being used.
- Returns
- The UDP connection name.
Implements RealTimeConnection.
bool RealTimeUdpConnection::open |
( |
const QHostAddress & |
address, |
|
|
quint16 |
port |
|
) |
| |
Open a UDP connection to the indicated address and port.
Closes the existing connection as required.
This function may block for up to the specified timeout
, attempting to establish a connection. After this time has elapsed, the connection is deemed to have failed.
- Parameters
-
address | The target address. |
port | The connection port. |
- Returns
- True if the connection is successfully established.
int RealTimeUdpConnection::read |
( |
QByteArray & |
buffer | ) |
|
|
overridevirtual |
Read data into the given buffer.
- Parameters
-
buffer | The buffer to read into. |
Implements RealTimeConnection.
int RealTimeUdpConnection::send |
( |
const QByteArray & |
buffer | ) |
|
|
overridevirtual |
Send the given buffer to the source.
- Parameters
-
buffer | The buffer to send. |
Implements RealTimeConnection.
The documentation for this class was generated from the following file: