Client class.
More...
#include <client.h>
|
| | Client (boost::asio::io_service &io, const boost::asio::ip::tcp::resolver::results_type &eps, input_request_ptr request) |
| | Construct a new Client object. More...
|
| |
| void | write (const std::string &message) |
| | Send text message. More...
|
| |
|
void | write (text_request_ptr) |
| | Send text request.
|
| |
|
void | write (join_room_request_ptr) |
| | Send join room request.
|
| |
| void | set_login_id (identifier_t id) |
| | Setter for client_id. More...
|
| |
| const char * | get_login () const |
| | Login getter. More...
|
| |
|
void | close_connection () |
| | Finish the communication with server.
|
| |
|
| ~Client () |
| | destructor
|
| |
Client class.
Implement communication with server
| Client::Client |
( |
boost::asio::io_service & |
io, |
|
|
const boost::asio::ip::tcp::resolver::results_type & |
eps, |
|
|
input_request_ptr |
request |
|
) |
| |
|
inline |
Construct a new Client object.
- Parameters
-
| io | boost::asio::io_service |
| eps | |
| request | initial request the server |
| const char* Client::get_login |
( |
| ) |
const |
|
inline |
Login getter.
- Returns
- const char*
| void Client::send_text |
( |
const std::string & |
from, |
|
|
const std::string & |
text, |
|
|
DateTime |
dt |
|
) |
| |
|
signal |
- Parameters
-
| from | sender's login |
| text | |
| dt | date and time of sending the text |
| void Client::set_login_id |
( |
identifier_t |
id | ) |
|
|
inline |
Setter for client_id.
- Parameters
-
| void Client::write |
( |
const std::string & |
message | ) |
|
Send text message.
- Parameters
-
The documentation for this class was generated from the following files:
- src/client/client/client.h
- src/client/client/client.cpp