InfXmppManager

InfXmppManager

Synopsis




                    InfXmppManager;
                    InfXmppManagerClass;
InfXmppManager*     inf_xmpp_manager_new                (void);
InfXmppConnection*  inf_xmpp_manager_lookup_connection_by_address
                                                        (InfXmppManager *manager,
                                                         InfIpAddress *address,
                                                         guint port);
gboolean            inf_xmpp_manager_contains_connection
                                                        (InfXmppManager *manager,
                                                         InfXmppConnection *connection);
void                inf_xmpp_manager_add_connection     (InfXmppManager *manager,
                                                         InfXmppConnection *connection);

Object Hierarchy


  GObject
   +----InfXmppManager

Signals


  "add-connection"                                 : Run Last

Description

Details

InfXmppManager

typedef struct _InfXmppManager InfXmppManager;


InfXmppManagerClass

typedef struct {
  GObjectClass parent_class;

  void(*add_connection)(InfXmppManager* manager,
                        InfXmppConnection* connection);
} InfXmppManagerClass;


inf_xmpp_manager_new ()

InfXmppManager*     inf_xmpp_manager_new                (void);

Creates a new xmpp manager.

Returns :

A new InfXmppManager.

inf_xmpp_manager_lookup_connection_by_address ()

InfXmppConnection*  inf_xmpp_manager_lookup_connection_by_address
                                                        (InfXmppManager *manager,
                                                         InfIpAddress *address,
                                                         guint port);

Looks for a InfXmppConnection contained in manager whose underlaying InfTcpConnection is connected to the given address and port. Returns NULL if there is no such connection.

manager :

A InfConnectionManager.

address :

The remote InfIpAddress of the connection to look for.

port :

The remote port number of the connection to look for.

Returns :


inf_xmpp_manager_contains_connection ()

gboolean            inf_xmpp_manager_contains_connection
                                                        (InfXmppManager *manager,
                                                         InfXmppConnection *connection);

Returns whether connection is contained in manager.

manager :

A InfXmppManager.

connection :

A InfXmppConnection.

Returns :

TRUE if connection is contained in manager, FALSE otherwise.

inf_xmpp_manager_add_connection ()

void                inf_xmpp_manager_add_connection     (InfXmppManager *manager,
                                                         InfXmppConnection *connection);

Adds the given connection to manager so that it is found by inf_xmpp_manager_lookup_connection_by_address() and inf_xmpp_manager_contains_connection(). connection must not be in state INF_XML_CONNECTION_CLOSING or INF_XML_CONNECTION_CLOSED.

manager :

A InfXmppManager.

connection :

A InfXmppConnection not yet contained in manager.

Signal Details

The "add-connection" signal

void                user_function                      (InfXmppManager    *infxmppmanager,
                                                        InfXmppConnection *arg1,
                                                        gpointer           user_data)           : Run Last

infxmppmanager :

the object which received the signal.

arg1 :

user_data :

user data set when the signal handler was connected.