io_service_(io_service),
ep_(file),
acceptor_(io_service_, ep_),
- socket_(io_service_)
+ socket_(io_service_),
+ data_buf_(1024)
{
acceptor_.async_accept(socket_, boost::bind(&TestDomainSocket::acceptHandler,
_1));
void setSendLname() {
// ignore whatever data we get, send back an lname
- asio::async_read(socket_, asio::buffer(data_buf, 0),
+ asio::async_read(socket_, asio::buffer(&data_buf_[0], 0),
boost::bind(&TestDomainSocket::sendLname, this));
}
asio::local::stream_protocol::endpoint ep_;
asio::local::stream_protocol::acceptor acceptor_;
asio::local::stream_protocol::socket socket_;
- char data_buf[1024];
+ std::vector<char> data_buf_;
};
/// \brief Pair holding header and data of a message sent over the connection.