Re: [Quickfix-developers] FileStore access
Brought to you by:
orenmnero
|
From: Caleb E. <cal...@gm...> - 2005-06-16 20:23:47
|
On 6/16/05, Nikhil Bose <ass...@ya...> wrote:
> How do I access / retrieve these messages in my application. In other
> words, how do I get a FileStore object to retrieve outgoing messages? Ar=
e
> these classes thread-safe?=20
You can get at the MessageStore directly from Session::getStore, but
the "get" method on this objetc is not synchronized. Best bet would
be to get the Session's SessionState object via something like
(minimally tested):
SessionState* state =3D dynamic_cast<SessionState*> (session->getLog ()=
);
And then use the SessionState's "get" method, which *is* synchronized
and is also what the Session layer uses itself, so you can be sure
nothing will get corrupted.
--=20
Caleb Epstein
caleb dot epstein at gmail dot com
|