Adbase
Adinf C++ base library V2
|
#include <TcpClient.hpp>
Public Member Functions | |
TcpClient (EventBasePtr &base, const InetAddress &serverAddr, const std::string &name, Timer *timer) | |
TcpClient (EventBasePtr &base, const std::string &hostname, int port, const std::string &name, Timer *timer) | |
~TcpClient () | |
void | connect () |
void | disconnect () |
void | stop () |
TcpConnectionPtr | connection () const |
EventBasePtr & | getLoop () const |
bool | retry () const |
void | enableRetry () |
const std::string & | name () const |
void | setConnectionCallback (const ConnectionCallback &cb) |
void | setMessageCallback (const MessageCallback &cb) |
void | setWriteCompleteCallback (const WriteCompleteCallback &cb) |
Definition at line 21 of file TcpClient.hpp.
adbase::TcpClient::TcpClient | ( | EventBasePtr & | base, |
const InetAddress & | serverAddr, | ||
const std::string & | name, | ||
Timer * | timer | ||
) |
Definition at line 7 of file TcpClient.cpp.
References LOG_INFO.
adbase::TcpClient::TcpClient | ( | EventBasePtr & | base, |
const std::string & | hostname, | ||
int | port, | ||
const std::string & | name, | ||
Timer * | timer | ||
) |
Definition at line 24 of file TcpClient.cpp.
References LOG_INFO.
adbase::TcpClient::~TcpClient | ( | ) |
Definition at line 41 of file TcpClient.cpp.
References LOG_INFO.
void adbase::TcpClient::connect | ( | ) |
Definition at line 49 of file TcpClient.cpp.
References LOG_INFO.
Referenced by adbase::mc::ClientHandler::start().
|
inline |
Definition at line 31 of file TcpClient.hpp.
void adbase::TcpClient::disconnect | ( | ) |
Definition at line 59 of file TcpClient.cpp.
|
inline |
Definition at line 44 of file TcpClient.hpp.
Referenced by adbase::mc::ClientHandler::start().
|
inline |
Definition at line 36 of file TcpClient.hpp.
|
inline |
Definition at line 48 of file TcpClient.hpp.
|
inline |
Definition at line 40 of file TcpClient.hpp.
|
inline |
Definition at line 52 of file TcpClient.hpp.
Referenced by adbase::mc::ClientHandler::start().
|
inline |
Definition at line 55 of file TcpClient.hpp.
Referenced by adbase::mc::ClientHandler::start().
|
inline |
Definition at line 58 of file TcpClient.hpp.
void adbase::TcpClient::stop | ( | ) |
Definition at line 72 of file TcpClient.cpp.
References adbase::sockets::getLocalAddr(), adbase::sockets::getPeerAddr(), and LOG_INFO.
Referenced by adbase::mc::ClientHandler::stop().