[Quickfix-developers] Acceptor broadcasting?
Brought to you by:
orenmnero
From: V. K. <vk...@el...> - 2009-01-14 01:10:00
|
Hi, I just started using the .NET quickfix lib and finding it surprisingly simple to use. I have an acceptor that my clients connect to. The acceptor is getting data from an exchange and then needs to forward the messages to all logged on clients (the exchange isn't using FIX). When I convert messages from the exchange to FIX and the acceptor picks it up it seems to me that I would have to loop through the sessions and send the message to each client. This seems like an unnecessarily arduous task so I wondering if there is a way to have the acceptor broadcast messages to all connected clients? this is how I'm doing this now: ArrayList sessions = acceptor.GetSessions(); for (int i=0; i< sessions.Count;i++) { Session.sendMessageToTargets(msg,((SessionID)sessions[i])); } I would like to be able to just call acceptor.SendAll(msg); instead. Thanks, nisbus |