|
trantor
Non-blocking I/O cross-platform TCP network library, using C++14
|
This class represents a data stream that can be sent asynchronously. The data is sent in chunks, and the chunks are sent in order, and all the chunks are sent continuously. More...
#include <trantor/net/AsyncStream.h>


Public Member Functions | |
| virtual bool | send (const char *data, size_t len)=0 |
| Send data asynchronously. | |
| bool | send (const std::string &data) |
| virtual void | close ()=0 |
| Terminate the stream. | |
Additional Inherited Members | |
| Protected Member Functions inherited from trantor::NonCopyable | |
| NonCopyable (const NonCopyable &)=delete | |
| NonCopyable & | operator= (const NonCopyable &)=delete |
| NonCopyable (NonCopyable &&) noexcept(true)=default | |
| NonCopyable & | operator= (NonCopyable &&) noexcept(true)=default |
This class represents a data stream that can be sent asynchronously. The data is sent in chunks, and the chunks are sent in order, and all the chunks are sent continuously.
|
pure virtual |
Send data asynchronously.
| data | The data to be sent |
| len | The length of the data |