RE.. [Quickfix-developers] Logon Message ?
Brought to you by:
orenmnero
|
From: Vamsi K. <Vam...@ib...> - 2003-06-02 15:36:40
|
Hi I have a situation , where ( can be sequel to John Dahl's requirement), I need to connect to a database when my login is successful. Thereafter I need to share this connection handle across the other functions (onRun and onMessage). I have the following questions regarding the above situation. Otherwise I would end up having a number of connection handles for each of the functions( callbacks) a) Can I use onRun to periodically generate MarketDataRequest from the list in the table ( database),( ofcourse it will have where clause saying if the certain flag is "send" or some thing like that. There were questions earlier of collection classes, Here is the classic example, I need to send a marketdatarequest with certain symbols ( "chose 'CS' type for simplicity). I would like to use onRun to look into database, get the symbols and compose the message and send it across. Now I get a message back ( marketDataSnapshot) with Symbol "A" having bidprice "12.2". Before sending I put the symbol in collection class and after I receive the response ( onMessage),would try to match the symbol and fill up the prices corresponding to the symbol. Thereafter I will have to update the information to the database. My question is How do we share the collection classes.. across callbacks and how do we share the connectionhandles..? It would be nice if the onMessage for admin messages are incorporated. I guess do we need to update the dictionary for that..? Vamsi /-----Original Message----- /From: qui...@li... [mailto:quickfix- /dev...@li...] On Behalf Of Oren Miller /Sent: Monday, June 02, 2003 2:50 AM /To: Jon Dahl; qui...@li... /Subject: Re: [Quickfix-developers] Logon Message ? / /Yeah, virtual functions for administrative messages /haven't been generated. This is an oversight that /will be fixed shortly. / /If you just add the virtual method for Logon into the /MessageCracker header file, that should be all you /need to do. / /What you can do is overload the onMessage( const D /--- Jon Dahl <jd...@Li...> wrote: /> There is something I don't understand with the logon /> sequence. /> /> If I want to use the Message Cracker function in the /> fromAdmin function, there is no virtual function /> defined in the message cracker header file. However, /> the crack function checks for message type "A" and /> calls /> onMessage((Logon&)message, sessionID). The result is /> UnsupportedMessageType being thrown. /> /> Is this a bug in the library or was it done this way /> buy design? What do I have to do to get the /> onMessage to work? /> /> Thanks, /> /> JD /> /> /> /------------------------------------------------------- /> This SF.net email is sponsored by: eBay /> Get office equipment for less on eBay! /> http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 /> _______________________________________________ /> Quickfix-developers mailing list /> Qui...@li... /> https://lists.sourceforge.net/lists/listinfo/quickfix-developers / /__________________________________ /Do you Yahoo!? /Yahoo! Calendar - Free online calendar with sync to Outlook(TM). /http://calendar.yahoo.com / / /------------------------------------------------------- /This SF.net email is sponsored by: eBay /Get office equipment for less on eBay! /http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 /_______________________________________________ /Quickfix-developers mailing list /Qui...@li... /https://lists.sourceforge.net/lists/listinfo/quickfix-developers |