#include <io_stream.hpp>
Inherited by matador::stream_handler.
The io stream class is proposed to be used with the io_service class and provides therefore an interface which is used by the io_service
◆ t_read_handler
Short for function to process read data
◆ t_write_handler
Short for function to prepare data to write
◆ close_stream()
virtual void matador::io_stream::close_stream |
( |
| ) |
|
|
pure virtual |
◆ name()
virtual std::string matador::io_stream::name |
( |
| ) |
const |
|
pure virtual |
◆ read()
This interface is called when data should be read from a socket. Once the date was read the given read handler is called.
- Parameters
-
buf | Buffer to read the data in |
read_handler | Handler to be called when data was read |
Implemented in matador::stream_handler.
◆ stream()
◆ write()
This interface is called when data should be written to a socket. Once the data was written the given write handler is called.
- Parameters
-
buffers | List of buffers containing the data to write |
write_handler | Handler to be called when the data was written |
Implemented in matador::stream_handler.
The documentation for this class was generated from the following file:
- matador/net/io_stream.hpp