Re: [Quickfix-developers] What thread or threads are involved when FIX::Session::sendToTarget is ca
Brought to you by:
orenmnero
From: K. F. <kfr...@gm...> - 2013-02-06 10:45:32
|
Hi Hei! Thank you for the answer. On Tue, Feb 5, 2013 at 10:53 PM, Hei Chan <str...@ya...> wrote: > If you use ThreadSocketInitiator, the caller's thread will be used all the > way till send() returns. > Otherwise, your message will be handed off to another thread. Would you happen to know if the same is true on the acceptor side? (I.e., SocketAcceptor --> caller's thread, ThreadedSocketAcceptor --> handed off to another thread?) > ... > From: K. Frank <kfr...@gm...> > To: Quickfix Developers List <qui...@li...> > ... > Hello List! > > When the static member function FIX::Session::sendToTarget is called, > does the calling thread execute the entire send procedure synchronously, > all the way down to a socket write? Or does the processing get handed > off to some other thread (such as the SocketAcceptor thread) to do most > of the work. > > On a related note, I was trying to trace though the code, but I got > confused: > It looks to me like Session::send calls Session::sendRaw, but that > Session::sendRaw calls Session::send. I must have missed a code > branch somewhere, but I couldn't figure out where send drills down to > actually pumping stuff over the wire. Could someone explain what is > going on here? > > Thanks. > > K. Frank |