RE: [Quickfix-developers] New file descriptors in acceptor's event loop?
Brought to you by:
orenmnero
From: Miller, O. <OM...@ri...> - 2004-01-12 20:20:25
|
This isn't really possible right now. The closest thing that you can do is use the new poll() method in place of start (only available in the development version in CVS currently), and create a second select statement, but this doesn't help with a timer and will also force your application into a tight loop which you may not want. This would be a useful feature that I'm sure people would like to see. I can imagine it could be done by passing the SocketInitiator a set of file descriptors and a SocketStrategy class ( currently used internally for socket event callbacks ). The timeout on the current select statement is 1 second, so I would think you could implement a counter if you want to simulate larger timeouts your application might need. I think this would be pretty trivial to implement actually. --oren -----Original Message----- From: Jochen De Lima [mailto:jd...@si...]=20 Sent: Monday, January 12, 2004 1:42 PM To: qui...@li... Subject: [Quickfix-developers] New file descriptors in acceptor's event loop? I apologize if this post is to the wrong list. Is there any way to insert a new file descriptor into the acceptor's event loop? For example, I'd like to use a different socket, or even a timer, without having to use threads. Thanks. -Jochen ----------------------------------------- This message and its attachments may contain privileged and confidential information. If you are not the intended recipient(s), you are prohibited from printing, forwarding, saving or copying this email. If you have received this e-mail in error, please immediately notify the sender and delete this e-mail and its attachments from your computer. ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers |