logo       

Watching over a socket descriptor: msg#00012

lib.boost.asio.user

Subject: Watching over a socket descriptor

I have an external communications library, which exposes a set of
high-level APIs and a socket descriptor for me to watch over (as in
select()). If there is something waiting on the socket, I am to call a
function from the library that will read the data, construct some
structures from it and return them. My question is if and how can I
integrate this into boost::asio, so that I could handle connections
created using boost::asio and the external library with the same code
(to the point of actually reading some data)?

--
Memfis


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise