Channel close confirmation
Matt Small <[email protected]> Tue, 27 Aug 2002 17:40:00 -0700
| Newsgroups | gmane.network.beep.roadrunner.general |
|---|---|
| Message-ID | <[email protected]> |
I'm trying to wait until I've closed a channel before going to close other
channels.. for instance, from the syslog reliable rfc:
L: <close number='1' code='200' />
I: <ok />
{ check the order here; the <ok /> must be sent before the new close is
sent }
I: <close number='0' code='200' />
L: <ok />
I can check a variable (locked, obviously) before I close channel 0, but where
can I set this variable after I've received the confirmation from the close
of channel 1? I thought that close_confirmation() would be the right answer,
but that seems to be too early in the close process.
Other methods or suggestions would be welcome.
Also, I've noticed this same kind of problem in your beep raw profile (the test
program that comes with it, actually). The ordering comes out more like this:
L: close channel 1
I: close channel 0
L: ok
I: ok { error! channel 0's been closed, and there's no more connection }
Thanks,
Matt Small
[email protected]