xmppJidGetDomain()
This function allows you to query the domain part of a jabber ID.
Synopsis
string xmppJidGetDomain(string jid);
Parameter
Parameter | Description |
---|---|
jid | Jabber ID such as winccoa.etm@jabber.at. |
Return Value
Returns the domain part of a jabber ID.
Errors
Errors can be queried via getLastError().
Description
This function allows you to query the domain part of a jabber ID.
The following example shows how to query the domain 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 domain part of a jid*/
string gu = xmppJidGetDomain("winccoa.etm@jabber.at");
DebugN("Returns the domain part of a jid", gu);
}
Assignment
Availability
CTRL