![]() |
![]() |
![]() |
libinfinity-0.3 Reference Manual | ![]() |
---|---|---|---|---|
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);
typedef struct { GObjectClass parent_class; void(*add_connection)(InfXmppManager* manager, InfXmppConnection* connection); } InfXmppManagerClass;
InfXmppManager* inf_xmpp_manager_new (void);
Creates a new xmpp manager.
Returns : |
A new InfXmppManager. |
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.
|
A InfConnectionManager. |
|
The remote InfIpAddress of the connection to look for. |
|
The remote port number of the connection to look for. |
Returns : |
gboolean inf_xmpp_manager_contains_connection (InfXmppManager *manager, InfXmppConnection *connection);
Returns whether connection
is contained in manager
.
|
A InfXmppManager. |
|
A InfXmppConnection. |
Returns : |
TRUE if connection is contained in manager , FALSE
otherwise.
|
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
.
|
A InfXmppManager. |
|
A InfXmppConnection not yet contained in manager .
|
"add-connection"
signalvoid user_function (InfXmppManager *infxmppmanager, InfXmppConnection *arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |