JGStreamHost Class Reference
A Jingle file transfer stream host.
More...
#include <yatejingle.h>
List of all members.
Detailed Description
A Jingle file transfer stream host.
This class holds a file transfer stream host definition
Constructor & Destructor Documentation
JGStreamHost |
( |
const char * |
jid, |
|
|
const char * |
addr, |
|
|
int |
port, |
|
|
const char * |
zeroConf = 0 | |
|
) |
| | [inline] |
Constructor
- Parameters:
-
| jid | Stream host jid (id) |
| addr | Stream host address |
| port | Stream host port |
| zeroConf | Optional zero conf definition (override address/port) |
Copy constructor
- Parameters:
-
| src | Source stream host to copy from |
Member Function Documentation
static XMLElement* buildHosts |
( |
const ObjList & |
hosts, |
|
|
const char * |
sid, |
|
|
const char * |
mode = "tcp" | |
|
) |
| | [static] |
Build a query XML element carrying a list of stream hosts
- Parameters:
-
| hosts | List of JGStreamHost objects |
| sid | The query element's sid attribute |
| mode | The query element's mode attribute |
- Returns:
- Valid XMLElement pointer
static XMLElement* buildRsp |
( |
const char * |
jid |
) |
[static] |
Build a query XML element with a streamhost-used child
- Parameters:
-
| jid | The jid of the stream host used |
- Returns:
- Valid XMLElement pointer
Build a stream host from an XML element
- Parameters:
-
| xml | The element to build from |
- Returns:
- Valid JGStreamHost pointer or 0 on error
Build an XML element from this stream host
- Returns:
- Valid XMLElement pointer
The documentation for this class was generated from the following file: