Re: [Quickfix-developers] sockets question: to block or not to block?
Brought to you by:
orenmnero
|
From: Sean L. <sea...@da...> - 2006-06-15 22:43:15
|
On 15 Jun 2006, at 11:06 PM, Sean Kirkpatrick wrote: > Could someone clarify something for me? Are the sockets created on > the SocketAcceptor (non-threaded) blocking or non-blocking? As I've just been looking through this code, and as you spell Sean the right way too, I'll tell you what I discovered (open to corrections obviously as I'm a newbie here). The sockets are blocking, in that no read or send timeouts are sent on them. Whether you call SocketAcceptor::block or SocketAcceptor::poll determines whether you block or not when waiting for new incoming messages, but either way you can still block on other socket operations. (This does cause issues regarding the topic of my previous email - is that what triggered yours? Or is it just coincidence? Anyway I have a solution for those issues, I just need to be able to select/poll on the FIX socket(s) and my own FDs with the same call right now) -- Sean Legassick se...@da... |