#include <socket.hpp>

Public Member Functions | |
| Client () | |
| Client (IPAddress addr, uint16_t port) | |
| Client (void *) | |
| Client (SOCKET, sockaddr_in, void *) | |
| std::string | Recv (std::size_t length) |
| void | Send (const std::string &data) |
| bool | Connected () |
| IPAddress | GetRemoteAddr () |
| bool | Close () |
| virtual | ~Client () |
Protected Attributes | |
| bool | connected |
| SOCKET | sock |
| sockaddr_in | sin |
| std::string | send_buffer |
| std::string | recv_buffer |
| std::size_t | send_buffer_max |
| void * | server |
Friends | |
| class | Server |
| Client::Client | ( | ) |
| Client::Client | ( | IPAddress | addr, | |
| uint16_t | port | |||
| ) |
| Client::Client | ( | void * | server | ) |
| Client::Client | ( | SOCKET | sock, | |
| sockaddr_in | sin, | |||
| void * | server | |||
| ) |
| Client::~Client | ( | ) | [virtual] |
| std::string Client::Recv | ( | std::size_t | length | ) |
| void Client::Send | ( | const std::string & | data | ) |
| bool Client::Connected | ( | ) |
| IPAddress Client::GetRemoteAddr | ( | ) |
| bool Client::Close | ( | ) |
friend class Server [friend] |
bool Client::connected [protected] |
SOCKET Client::sock [protected] |
sockaddr_in Client::sin [protected] |
std::string Client::send_buffer [protected] |
std::string Client::recv_buffer [protected] |
std::size_t Client::send_buffer_max [protected] |
void* Client::server [protected] |
1.5.7.1