RE: [Quickfix-developers] ThreadedSocketInitiator
Brought to you by:
orenmnero
From: Shivakumar K. <Shi...@in...> - 2004-04-14 20:17:42
|
Thanks for your reply. =20 What I meant by Serialzation is actually syncronization of requests = from multiple clients(mltiple threads) over a single session. Do I need = to explicitly synchronise my "Session.sendToTarget" method or is it = already taken care in the ThreadedSocketInitiator. =20 -Shivakumar -----Original Message----- From: Oren Miller [mailto:or...@qu...] Sent: Wednesday, April 14, 2004 12:16 PM To: Shivakumar Keshavamurthy Cc: qui...@li... Subject: Re: [Quickfix-developers] ThreadedSocketInitiator You can always call Session.sendToTarget without serialization. The = Threaded refers to how it manages the sessions. With a regular = SocketInitiator, all sessions share the same thread for processing = events. With the ThreadedSocketInitiator, each session processes events = in its own thread. This means that you would have to synchronize the = callback methods to your Application class.=20 --oren=20 On Apr 14, 2004, at 12:54 PM, Shivakumar Keshavamurthy wrote:=20 Has anyone used "ThreadedSocketInitiator"? How is it different from = the "SocketInitiator"?=20 Can I call "Session.sendToTarget" from multiple threads without = serialization?=20 thanks=20 shivakumar=20 |