[JDEV] Status offline on </jabber>

Ryan Eatmon reatmon at ti.com
Thu Oct 14 11:28:40 CDT 1999


>   Hrm..  Doesn't the status offline message INCLUDE the NICK that 
> is marked offline?  You need to catch that as well..

The problem is that it always sends the <status type='offline'> when you
get a </jabber> tag.  There is more in the <status> tag I was just using
the bare minimum to show the problem.

The problem is that a one shot client will alert everyone that you just
logged off eveh though you are connected through a different client. If
there was a way to tell the server through the <jabber> tag that this
was a one shot message and not announce that you logged in, and logged
out it would be better.

Maybe:

<?xml version="1.0"?>
<jabber type="one-shot">

<login>
  <user>jeremie</user>
  <pass>Ph0niks</pass>
  <nick>jabalot</nick>
</login>

<message>
  <to>jeremie</to>
  <say>test</say>
</message>
</jabber>

vs.

<?xml version="1.0"?>
<jabber type="session">

<login>
  <user>jeremie</user>
  <pass>Ph0niks</pass>
  <nick>jabalot</nick>
</login>

<message>
  <to>jeremie</to>
  <say>test</say>
</message>
</jabber>


One-shot would allow the server to just authenticate and send a
message.  Session would allow the user to connect, announce their
presence, get messages, send messages, get some more, send some more,
announce departure and close the conenction.


-- 

Ryan Eatmon                reatmon at ti.com
-----------------------------------------
Mixed Signal Product Development EDA Team




More information about the JDev mailing list