Re: [Quickfix-developers] Acceptor and fork
Brought to you by:
orenmnero
|
From: Caleb E. <cal...@gm...> - 2007-01-15 14:32:34
|
On 1/15/07, Ste...@de... > However, I have a UNIX environment and I want to use something like > following code example. > Anyone knows if there is a way or better a sample to do this with QF. > I think it is a new acceptor implementation. > > [ snip code using fork ] I think this would have to be a new Acceptor implementation. It ought to work fine, but you'd be faced with the problem that you could not detect duplicate connections to the same session. The threaded approach allows static data structures to be shared across all sessions, so the Acceptor can determine if a second client tries to login using the same credentials as another, currently-active session. With this forked approach, you'd need to use some other technique (file locking perhaps) to provide this safeguard. -- Caleb Epstein |