18 Feb
2010
18 Feb
'10
3:15 p.m.
Hi Why doesn't this work: _socket = tcp::socket(ioService); _socket is a private member of type tcp::socket. How can I store the socket as a class member (so I can access it when using read/write from other class methods)? Also, is there any way to define a timeout on a synchronous connect()? If not, what's the workaround? Can I do an async connect and then somehow return to synchronous mode of operation? Thanks, David