#include <server_conn.h>
Public Member Functions | |
| Hazy_Worker (int fd) | |
| Initializes buffer and sets client socket id. | |
| ~Hazy_Worker () | |
| Hazy_Worker destructor that destructs buffer. | |
| void * | readData () |
| Reads data from client. | |
| int | writeData (const void *data, int size, bool intData) |
| Writes data to the client. | |
| void | closeClientConnection () |
| Closes client connection. | |
Private Attributes | |
| buffer_handle | bh |
| Buffer for read/writes. | |
| int | fd |
| Client connection socket id. | |
| int | buf_size |
| Buffer size. | |
| Hazy_Worker::Hazy_Worker | ( | int | fd | ) | [inline] |
Initializes buffer and sets client socket id.
| [in] | fd | client socket id |
| Hazy_Worker::~Hazy_Worker | ( | ) | [inline] |
Hazy_Worker destructor that destructs buffer.
| void Hazy_Worker::closeClientConnection | ( | ) |
Closes client connection.
| void * Hazy_Worker::readData | ( | ) |
Reads data from client.
| int Hazy_Worker::writeData | ( | const void * | data, | |
| int | size, | |||
| bool | intData | |||
| ) |
Writes data to the client.
| [in] | data | data pointer to be written to the client |
| [in] | size | size of the data pointer |
| [in] | intData | boolean value shows whether data is integer data or not |
buffer_handle Hazy_Worker::bh [private] |
Buffer for read/writes.
int Hazy_Worker::buf_size [private] |
Buffer size.
int Hazy_Worker::fd [private] |
Client connection socket id.
1.4.7