|
Boost : |
Subject: [boost] quest for member âread_someâ in âsocketâ, which is of non-class type âboost::asio::ip::tcp::socket* {aka boost::asio::basic_stream_socket<boost::asio::ip::tcp>*}
From: neha_mysql (nehaaiee_at_[hidden])
Date: 2012-09-11 02:18:24
Hii,
i am trying to execute a code and im getting error in this part of the
code(in line no 3)
for(;;)
char buf[4];
size_t len = socket.read_some(boost::asio::buffer(buf,4));
if(error == boost::asio::error::eof)
break;
else if(error)
throw boost::system::system_error(error);
std::cout << "[!]";
std::cout.write(buf.data(), len);
}
The error is *" quest for member âread_someâ in âsocketâ, which is of
non-class type âboost::asio::ip::tcp::socket* {aka
boost::asio::basic_stream_socket<boost::asio::ip::tcp>*}"*
-- View this message in context: http://boost.2283326.n4.nabble.com/quest-for-member-read-some-in-socket-which-is-of-non-class-type-boost-asio-ip-tcp-socket-aka-boost-a-tp4635574.html Sent from the Boost - Dev mailing list archive at Nabble.com.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk