QcInProcessTransport Class
One end of an in-process link. More...
| Header: | #include <common/protocol/QcInProcessTransport.h> |
| Inherits: | QcTransport |
Public Functions
| QcInProcessTransport(const QcInProcessTransport &) | |
| QcInProcessTransport(QcInProcessTransport &&) | |
| QcInProcessTransport & | operator=(QcInProcessTransport &&) |
| QcInProcessTransport & | operator=(const QcInProcessTransport &) |
Reimplemented Public Functions
| virtual void | close() override |
| virtual bool | isOpen() const override |
| virtual void | sendFrame(const QByteArray &frame) override |
Static Public Members
| std::pair<std::unique_ptr<QcInProcessTransport>, std::unique_ptr<QcInProcessTransport>> | createPair() |
Detailed Description
Frames go into the peer's inbox under a mutex and the peer is woken through its event loop, so both ends may live in different threads (server and GUI).
Member Function Documentation
[delete] QcInProcessTransport::QcInProcessTransport(const QcInProcessTransport &)
Copy-constructs an instance of QcInProcessTransport. This function is deleted.
[delete] QcInProcessTransport::QcInProcessTransport(QcInProcessTransport &&)
Move-constructs an instance of QcInProcessTransport. This function is deleted.
[override virtual] void QcInProcessTransport::close()
Reimplements: QcTransport::close().
[static] std::pair<std::unique_ptr<QcInProcessTransport>, std::unique_ptr<QcInProcessTransport>> QcInProcessTransport::createPair()
Creates and returns two connected ends without parents; move each to its thread before use.
[override virtual] bool QcInProcessTransport::isOpen() const
Reimplements: QcTransport::isOpen() const.
[override virtual] void QcInProcessTransport::sendFrame(const QByteArray &frame)
Reimplements: QcTransport::sendFrame(const QByteArray &frame).
[delete] QcInProcessTransport &QcInProcessTransport::operator=(QcInProcessTransport &&)
Move-assigns other to this QcInProcessTransport instance. This function is deleted.
[delete] QcInProcessTransport &QcInProcessTransport::operator=(const QcInProcessTransport &)
Copy-assigns other to this QcInProcessTransport instance. This function is deleted.