#include <client.h>
Public Member Functions | |
| client (kernel::module &module, server_service &server_service) | |
| void | shutdown (void) |
| void | timer_expired (void) |
| void | run (void) |
| void | connected (void) |
| void | set_server (server *server) |
| size_t | read (uint8_t *buffer, size_t size) |
| void | read_eof (void) |
| void | flush_write (void) |
| void | continue_write (void) |
Private Member Functions | |
| client (const client &) | |
| client & | operator= (const client &) |
| size_t | _server_write (void) |
Private Attributes | |
| bool | _binding |
| bool | _shutdown |
| bool | _shutdown_write |
| size_t | _size |
| uint8_t * | _buffer |
| server * | _server |
| server_service & | _server_service |
Definition at line 37 of file client.h.
| scalestack::proxy::client::client | ( | kernel::module & | module, | |
| server_service & | server_service | |||
| ) |
| scalestack::proxy::client::client | ( | const client & | ) | [private] |
Don't allow copying of objects.
| void scalestack::proxy::client::shutdown | ( | void | ) | [virtual] |
Start shutdown process.
Reimplemented from scalestack::network::stream.
| void scalestack::proxy::client::timer_expired | ( | void | ) | [virtual] |
Called when server timeout expiures, shutdown the client.
Reimplemented from scalestack::network::stream.
| void scalestack::proxy::client::run | ( | void | ) | [virtual] |
Shutdown bound server.
Reimplemented from scalestack::network::stream.
| void scalestack::proxy::client::connected | ( | void | ) | [virtual] |
Notify the server service of new client.
Reimplemented from scalestack::network::stream.
| void scalestack::proxy::client::set_server | ( | server * | server | ) |
| size_t scalestack::proxy::client::read | ( | uint8_t * | buffer, | |
| size_t | size | |||
| ) | [virtual] |
Implements scalestack::network::stream.
| void scalestack::proxy::client::read_eof | ( | void | ) | [virtual] |
See network::stream::read_eof().
Reimplemented from scalestack::network::stream.
| void scalestack::proxy::client::flush_write | ( | void | ) | [virtual] |
See network::stream::flush_write().
Implements scalestack::network::stream.
| void scalestack::proxy::client::continue_write | ( | void | ) |
Don't allow assignment of objects.
| size_t scalestack::proxy::client::_server_write | ( | void | ) | [private] |
Write data to the server. This is used by both the read() and continue_write() methods.
bool scalestack::proxy::client::_binding [private] |
bool scalestack::proxy::client::_shutdown [private] |
bool scalestack::proxy::client::_shutdown_write [private] |
size_t scalestack::proxy::client::_size [private] |
uint8_t* scalestack::proxy::client::_buffer [private] |
server* scalestack::proxy::client::_server [private] |
1.6.3