Go to the documentation of this file.
49 m_connection->
close();
57 m_connection->
write((
uint8*)message.c_str(), message.length());
73 std::string
string = std::string((
char*)buffer, (
size_t)size);
stdext::shared_object_ptr< Connection > ConnectionPtr
void connect(const std::string &host, uint16 port)
void onRecv(uint8 *buffer, uint16 size)
ProtocolHttpPtr asProtocolHttp()
R callLuaField(const std::string &field, const T &... args)
void onError(const boost::system::error_code &err)
void write(uint8 *buffer, size_t size)
void connect(const std::string &host, uint16 port, const std::function< void()> &connectCallback)
void read_until(const std::string &what, const RecvCallback &callback)
void setErrorCallback(const ErrorCallback &errorCallback)
void send(const std::string &message)