xmppJidGetResource()

This function allows you to query the resource part of a jabber ID.

Synopsis

string xmppJidGetResource(string jid);

Parameter

Parameter Description
jid Jabber ID such as winccoa.etm@jabber.at.

Return Value

Returns the resource part of a jabber ID.

Errors

Errors can be queried via getLastError().

Description

This function allows you to query the resource part of a jabber ID.

The following example shows how to query the resource part of a jabber ID.

Note: You have to replace the code: p = xmppOpen("winccoa.etm@jabber.at","123677", "callback", m); DebugN("xmppOpen:", p); by your own user and password. This code is an example!
#uses "CtrlXmpp"
int p;
main(mapping event)
{
  p = xmppOpen("winccoa.etm@jabber.at","123677");
  DebugN("xmppOpen:", p);
  /* Returns the resource part of a jid*/
  string getRes = xmppJidGetResource("winccoa.etm@jabber.at");
  DebugN("Returns the resource of a jid", getRes);
}

Assignment

XMPP functions

Availability

CTRL