Public Member Functions | |
Connection (asio::io_service &service, Tcp *tcp) | |
asio::ip::tcp::socket & | getSocket () |
void | start (const NetAddress &address) |
void | stop () |
virtual | ~Connection () |
Protected Member Functions | |
Connection (const Connection &other) | |
void | handleRead (const asio::error_code &error, size_t count) |
Connection & | operator= (const Connection &other) |
Protected Attributes | |
NetAddress | address |
char | buffer [8192] |
Tcp * | channel |
bool | closed |
asio::ip::tcp::socket | socket |
Friends | |
class | Tcp |
castor::net::channels::Tcp::Connection::Connection | ( | const Connection & | other | ) | [protected] |
castor::net::channels::Tcp::Connection::Connection | ( | asio::io_service & | service, |
Tcp * | tcp | ||
) |
castor::net::channels::Tcp::Connection::~Connection | ( | ) | [virtual] |
void castor::net::channels::Tcp::Connection::handleRead | ( | const asio::error_code & | error, |
size_t | count | ||
) | [protected] |
Tcp::Connection & castor::net::channels::Tcp::Connection::operator= | ( | const Connection & | other | ) | [protected] |
void castor::net::channels::Tcp::Connection::start | ( | const NetAddress & | address | ) |
char castor::net::channels::Tcp::Connection::buffer[8192] [protected] |
Tcp* castor::net::channels::Tcp::Connection::channel [protected] |
bool castor::net::channels::Tcp::Connection::closed [protected] |