|
Boost Users : |
Subject: [Boost-users] ASIO sockets and stream buffers
From: Jeff Diewald (diewald_at_[hidden])
Date: 2009-02-04 17:10:01
I'm having trouble with trying to connect my TCP sockets up to a
stream buffer, and need some help.
I've already opened my sending socket, or accepted a connection to get
a new receiving socket, and I want to send messages back and forth.
What I'd like to write is something like:
void sendMessage(boost::asio::ip::tcp::socket* s) {
?? some stream type ?? str(s);
str << ... write stuff ... << flush();
str >> ... read stuff ...;
}
I can't seem to find the right stream type that takes my existing
socket. Does such a creature exist in the ASIO library?
Help!
Thanks in advance,
Jeff Diewald
JEOL USA
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net