#include <iksemel.h>
#include <openssl/BIO.h>
Go to the source code of this file.
Data Structures | |
struct | engine_xmpp_session_t |
Contains all data related to a connection to a Jabber server. More... | |
struct | engine_xmpp_t |
Structure containing all data related to the XMPP connection. More... | |
Defines | |
#define | ENGINE_XMPP_SESSION(engine_xmpp) (engine_xmpp->session) |
A convenience macro used to extract session from the engine_xmpp_t structure. | |
Typedefs | |
typedef void(* | engine_xmpp_msg_handler_t )(void *engine_xmpp, char *from, char *message) |
Callback that is called when a message is received from the XMPP-server. | |
Functions | |
engine_xmpp_t * | engine_xmpp_new () |
Allocates and returns a engine_xmpp_t structure and initializes it with default values. | |
void | engine_xmpp_connect (engine_xmpp_t *engine_xmpp) |
Connect to the XMPP server with the set account. | |
void | engine_xmpp_set_server (engine_xmpp_t *engine_xmpp, char *server) |
Set XMPP-server. | |
void | engine_xmpp_set_account (engine_xmpp_t *engine_xmpp, char *jid, char *password, int set_roster) |
Set XMPP-account the API shall use. | |
void | engine_xmpp_disconnect (engine_xmpp_t *engine_xmpp) |
Disconnect from the XMPP-server. | |
int | engine_xmpp_process (engine_xmpp_t *engine_xmpp) |
Process messages from XMPP-server and return when done This function uses polling to see if there are any messages from the server. If we have not received any messages during a period it will return. Call the function at regular intervals to keep the connection. | |
void | engine_xmpp_set_logger (engine_xmpp_t *engine_xmpp, BIO *logger) |
Set the loggger to use for this subsystem. | |
void | engine_xmpp_add_msg_handler (engine_xmpp_t *engine_xmpp, engine_xmpp_msg_handler_t callback) |
Add a callback-function that is called when a message is received from the XMPP-server. | |
void | engine_xmpp_send_msg (engine_xmpp_t *engine_xmpp, char *to, char *message) |
Send a message to a given XMPP-client. |
|
A convenience macro used to extract session from the engine_xmpp_t structure.
|
|
Callback that is called when a message is received from the XMPP-server.
|
|
Add a callback-function that is called when a message is received from the XMPP-server.
|
|
Connect to the XMPP server with the set account.
|
|
Disconnect from the XMPP-server.
|
|
Allocates and returns a engine_xmpp_t structure and initializes it with default values.
|
|
Process messages from XMPP-server and return when done This function uses polling to see if there are any messages from the server. If we have not received any messages during a period it will return. Call the function at regular intervals to keep the connection.
|
|
Send a message to a given XMPP-client.
|
|
Set XMPP-account the API shall use.
|
|
Set the loggger to use for this subsystem.
|
|
Set XMPP-server.
|