Re: Which comes first, pro_start_confirmation or pro_start_callback?
Darren New <[email protected]> Wed, 08 Oct 2003 12:55:28 -0700
| Newsgroups | gmane.network.beep.beepcore.c.general |
|---|---|
| Message-ID | <[email protected]> |
David C Niemi wrote:
>>I believe one is called on the start-listening peer and the other on the
>>start-initiating peer when start completes.
If I recall correctly, pro_start_callback is called on the initiator of
the connection, and pro_start_confirmation is called on both sides (on
the listener when the answer to the start is sent, and on the initiator
when it's received.) I also believe that pro_start_confirmation imight
not be called if the request is refused. I.e., the
pro_start_confirmation tells you it's safe to start sending on the
channel that's open.
> pro_start_confirmation() is definitily on the initiator side.
>
> But pro_start_callback() is "invoked when a response is received to
> *_start's request to start a channel". This also sounds like the
> initiator side -- if it had SENT the response, why would it be looking for
> it?
It's looking for the response. Even if it's a negative response.
It's been too long for me, so you might need to look at the code to see
exactly what's going on there.
--
Darren New, San Diego CA USA (PST)
Don't take home left-over tripe.
It'll just digest itself before
you get around to eating it.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php