|
libdrmconf 0.15.0
A library to program DMR radios.
|
Defines an interface for a datagram socket. More...
#include <packetstream.hh>


Public Member Functions | |
| virtual | ~PacketStream () |
| Destructor. | |
| virtual bool | isOpen () const =0 |
Returns true if the stream is open. | |
| virtual void | close ()=0 |
| Closes the stream. | |
| virtual bool | receive (QByteArray &buffer, int timeout=-1, const ErrorStack &err=ErrorStack())=0 |
| Receives a datagram. | |
| virtual bool | send (const QByteArray &buffer, int timeout=-1, const ErrorStack &err=ErrorStack())=0 |
| Receives a datagram. | |
Protected Member Functions | |
| PacketStream (QObject *parent=nullptr) | |
| Hidden constructor. | |
Defines an interface for a datagram socket.
That is, just some methods to send and receive packets.
|
pure virtual |
Closes the stream.
Implemented in OpenRTXLinkDatagram, and SlipStream.
|
pure virtual |
Returns true if the stream is open.
Implemented in OpenRTXLinkDatagram, and SlipStream.
|
pure virtual |
Receives a datagram.
Blocks for up to timeout milliseconds.
Implemented in OpenRTXLinkDatagram, and SlipStream.
|
pure virtual |
Receives a datagram.
Blocks for up to timeout milliseconds.
Implemented in OpenRTXLinkDatagram, and SlipStream.