![]() |
Heart 1.4.918.d927d9c
Heart is base back end library for your c++ Qt projects.
|
The DataSender class this class create a queue for sendet data to network. More...
#include <datasender.h>


Public Member Functions | |
| DataSender (QThread *thread) | |
| bool | sendData (const QByteArray &array, void *target, bool await=false) const |
| sendPackagePrivate This slot move send package to a main thread. | |
| Public Member Functions inherited from QH::Async | |
| bool | asyncLauncher (const Job &job, bool await=false, bool freaze=true) const |
| asyncLauncher This method invoke a job on the thread (using the asyncHandler method) of this object. | |
Additional Inherited Members | |
| Public Types inherited from QH::Async | |
| using | Job = std::function<bool()> |
| Protected Member Functions inherited from QH::Async | |
| Async (QThread *thread) | |
| Async This is default constructor of the async object. | |
| ~Async () | |
| bool | waitFor (bool *condition, int timeout=WAIT_TIME, bool freaze=true) const |
| waitFor This is base wait function. | |
| bool | waitFor (const Job &condition, int timeout=WAIT_TIME, bool freaze=true) const |
| waitFor This is base wait function. | |
The DataSender class this class create a queue for sendet data to network.
Definition at line 22 of file datasender.h.
| QH::DataSender::DataSender | ( | QThread * | thread | ) |
Definition at line 16 of file datasender.cpp.


| bool QH::DataSender::sendData | ( | const QByteArray & | array, |
| void * | target, | ||
| bool | await = false ) const |
sendPackagePrivate This slot move send package to a main thread.
| array | Bytes to send. |
| target | This is pointer of target socket. |
| await | This option force wait for finishing data sending. |
Definition at line 21 of file datasender.cpp.
