The class stream_protocol
defines no inner resolver_query
type. That member type is needed for the connect
function. The connect
function is called inside the constructor with parameters of basic_socket_iostream
. It seems to me, that the stream_protocol
was not meant to act as a iostream
. If you look into the stream_protocol
header you even see an #if !defined(BOOST_NO_IOSTREAM)
around the inner iostream
type. So try to use endpoint
, socket
or acceptor
instead.
EDIT:
If you used a string, try connecting to an stream_protocol::endpoint
instead. Using something different than an stream_protocol::endpoint
will result definitely in this error. If this doesn't help first construct the object and after after that, use the connect
method to connect to an endpoint.
EDIT: For examples of how to use stream_local
try the official example.