Re: Unable send data on BEEP Channel after sending some frames and RST problems
[email protected] (Jonas Borgström) 13 Sep 2002 14:50:41 +0200
| Newsgroups | gmane.network.beep.roadrunner.general |
|---|---|
| Message-ID | <[email protected]> |
Rajesh Madabhushi <[email protected]> writes: *SNIP* > > Very glad. Even I want that, reason for modifying rridxp.c is the routine > rr_channel_send_message(RR_CHANNEL (idxp),msg,error) that > using to send replies need channel ID as first argument. But I don't > know how to provide that, so just sending messages back after > rr_message_process_frame routine() in rridxp.c . > > Could you please provide me the procedure to send message(RPY) back to > client in my_consumer() function itself? What I want is send back RPYs > on the channel in which MSGs ware received. > The next version of RRIDXP will probably pass the profile/channel pointer as the first parameter to the consumer function just to make things easier to do. RRIDXP will do different things depending on what the consumer callback returns: On TRUE, RRIDXP sends an "<ok />" frame and on FALSE an "<error />" frame will be transmitted (with the error message from the GError variable). Because IDXP is a one-way protocol, you are not allowed to send IDXP messages yourself from the server consumer callback. So if you need to send some IDXP message to the client you have to use another IDXP channel. / Jonas -- Jonas Borgström [email protected] CodeFactory AB http://www.codefactory.se/ Office: +46 (0)90 71 86 10 Cell: +46 (0)70 248 89 58