[JDEV] About transports...
Jeremie
jer at jeremie.com
Mon Apr 5 22:34:13 CDT 1999
I'll try to explain how the status packets interact with other transports
and map onto their "status" settings...
A typical Jabber status packet might look like:
<status>
<say>Busy Working</say>
<priority>-5</priority>
</status>
Any client can't possibly be expected to understand about how a remote
system's status might be handled, so it's going to be up to the transport
to map a Jabber status onto the appropriate status settings for that
remote syste(ICQ/AIM/etc).
Say, for the above status, it was being forwarded on to an ICQ user via
the ICQ transport. The ICQ transport would need to map the -5 onto the
range of "away" settings(-5 might be 'away' and -15 might be 'N/A', the
priority values need to be mapped out as guidelines yet, another
discussion). Then, it would copy the <say></say> contents into the actual
ICQ away message.
It works just the same in reverse, ICQ status updates are translated to
Jabber and sent on.
A Jabber client should never need to be aware of any "transport only" data
like specific ICQ status settings, everything is converted to/from Jabber,
that's the point :)
Jer
On Tue, 6 Apr 1999, Waster_ wrote:
> Will the transports send information about it's avaible
> statuses to the user? For example ICQ transport can
> send something like that in the <EXT> tag:
>
> Transport2Client Avaible Statuses Msg:
> <EXT>
> <TRANSPORT name="ICQ" status="Avaible/Connect"/>
> <TRANSPORT name="ICQ" status="Away"><PARAMETER name="reason"/></TRANSPORT>
> <TRANSPORT name="ICQ" status="N/A (Extended Away)"><PARAMETER name="reason"/></TRANSPORT>
> <TRANSPORT name="ICQ" status="Occupied (Urgent Msgs)"><PARAMETER name="reason"/></TRANSPORT>
> <TRANSPORT name="ICQ" status="DND (Do Not Disturb)"><PARAMETER name="reason"/></TRANSPORT>
> <TRANSPORT name="ICQ" status="Privacy (Invisible)"/>
> <TRANSPORT name="ICQ" status="Offline/Disconnect"/>
> </EXT>
>
> Client2Transport Status Msg:
> <EXT>
> <STATUS type="Away" reason="I'll be back in a few minutes"/>
> </EXT>
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Visit Waster's HomePage at http://waster.8m.com/
>
More information about the JDev
mailing list