[JDEV] Status offline on </jabber> Session vs Temp Session
Thomas Charron
tcharron at ductape.net
Thu Oct 14 12:20:58 CDT 1999
Quoting Ryan Eatmon <reatmon at ti.com>:
> > 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.
Err, I KINDA see your point here.. ;-P See below for more..
> 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.
I would see the 'one shot' messages as being an anonymous connection, as I
was asking about before.. I wouldn;t want to have tio hardcode a userid and
password into a program, just connect and send an anonymous message to a user.
Anonymous messages would need to include SOME sort of from in the message, but
not a from as in from a full fledged user..
> <?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>
Actually, this has merit. A type on the jabber document tag specifying the
'kind' of stream this is. Perhaps 'temporary' is a better type then one-shot.
Basically, this 'type' could be a way to signal.. "Don;t send me messages, etc
here, and don;t announce me, I'm just sending a quickie, and then
disconnecting".
> <?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>
I'd say type would be optional, with no type, defaults to a full fledged
session..
> 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.
Yes, I like this, but I wouldn;t name it one-shot. I'd say temporary is a
better descrition type..
Ideas, people?
---
Thomas Charron
<< Wanted: One decent sig >>
<< Preferably litle used >>
<< and stored in garage. ?>>
More information about the JDev
mailing list