Discussion:
[asio-users] Poll third party file descriptor by asio
Vladimir Voznesensky
2012-08-21 08:45:30 UTC
Permalink
Hello.

How could I add some file descriptor (provided by a third party library)
to asio for polling?

Thanks.
VV
Daniel Mierswa
2012-08-21 09:55:59 UTC
Permalink
Post by Vladimir Voznesensky
Hello.
How could I add some file descriptor (provided by a third party library)
to asio for polling?
I think it's posix::basic_descriptor
--
Mierswa, Daniel

If you still don't like it, that's ok: that's why I'm boss. I simply know better than you do.
--- Linus Torvalds, comp.os.linux.advocacy, 1996/07/22
Nir Tzachar
2012-08-24 06:02:44 UTC
Permalink
Post by Daniel Mierswa
Post by Vladimir Voznesensky
Hello.
How could I add some file descriptor (provided by a third party library)
to asio for polling?
I think it's posix::basic_descriptor
You will also need to use null_buffers for your async send/receive to get
proper notifications.
Post by Daniel Mierswa
--
Mierswa, Daniel
If you still don't like it, that's ok: that's why I'm boss. I simply know better than you do.
--- Linus Torvalds, comp.os.linux.advocacy, 1996/07/22
------------------------------------------------------------------------------
Post by Daniel Mierswa
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
asio-users mailing list
https://lists.sourceforge.net/lists/listinfo/asio-users
_______________________________________________
Using Asio? List your project at
http://think-async.com/Asio/WhoIsUsingAsio
Gruenke, Matt
2012-08-21 17:24:32 UTC
Permalink
See:

http://www.boost.org/doc/libs/1_51_0/doc/html/boost_asio/example/nonblocking/third_party_lib.cpp


Matt


-----Original Message-----
From: Vladimir Voznesensky
Sent: Tue 8/21/2012 4:45 AM
To: asio-***@lists.sourceforge.net
Subject: [asio-users] Poll third party file descriptor by asio

Hello.

How could I add some file descriptor (provided by a third party library)
to asio for polling?

Thanks.
VV
Loading...