At 09:13 29/3/01 -0800, John H. Lee wrote:
>
>> >I need to have mutual dependencies between several of my
>> components. That
>> >is, ComponentA depends on ComponentB and ComponentB depends
>> on ComponentA.
>>
>> hmm - is it possible to refactor this into a third Block? The
>> reason I ask
>> is because if mutual dependencies exist one of them will be
>> passed to the
>> other block in a uninitialized state which could cause subtle
>> and serious
>> problems.
>
>I dunno. Think of my server as a queue/proxy. It has a block for incoming
>connections (NetIn), a block for outgoing connections (NetOut), and a block
>for processing/queueing the incoming packets (Queue).
>
>Incoming packets (NetIn) must be placed in the Queue and sent on (NetOut).
>A response may come back in via NetOut, which needs to be communicated back
>to Queue (but not NetIn). So, my dependency graph matches the flow of data:
>
> NetIn --> Queue <--> NetOut
Like Paul said I would probably use a callback between Queue and NetOut.
>Huh?! Isn't BlockDAG run only once for the life of a server?
It's can be run multiple times though - when a management interface is set
up it will be called when shutting down blocks etc.
Cheers,
Pete
*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof." |
| - John Kenneth Galbraith |
*-----------------------------------------------------*
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]