Net::Jabber::Loudmouth::Connection(3pm)
NAME
Net::Jabber::Loudmouth::Connection - Jabber connection
HIERARCHY
Glib::Boxed
+----Net::Jabber::Loudmouth::Connection
METHODS
- connection = Net::Jabber::Loudmouth::Connection->new ($server)
- o $server (string)
- connection = Net::Jabber::Loudmouth::Connection->new_with_context ($server,
- $context)
o $server (string) - o $context (Glib::MainContext thingamabob)
- boolean = $connection->authenticate ($username, $password, $resource,
- $auth_cb, $user_data=undef) o $username (string)
- o $password (string)
- o $resource (string)
- o $auth_cb (scalar)
- o $user_data (scalar)
- boolean = $connection->authenticate_and_block ($username, $password,
- $resource)
o $username (string) - o $password (string)
- o $resource (string)
- $connection->cancel_open
boolean = $connection->close $connection->set_disconnect_function ($disconnect_cb, $user_data=undef) - o $disconnect_cb (scalar)
- o $user_data (scalar)
- boolean = $connection->is_authenticated boolean = $connection->is_open string = $connection->get_jid $connection->set_jid ($jid)
- o $jid (string)
- $connection->set_keep_alive_rate ($rate)
- o $rate (integer)
- boolean = $connection->open ($result_cb, $user_data=undef)
- o $result_cb (scalar)
- o $user_data (scalar)
- boolean = $connection->open_and_block integer = $connection->get_port $connection->set_port ($port)
- o $port (integer)
- proxy = $connection->get_proxy $connection->set_proxy ($proxy)
- o $proxy (Net::Jabber::Loudmouth::Proxy or undef)
- messagehandler = $connection->register_message_handler ($type, $priority,
- $handler_cb, $user_data=undef) o $type (Net::Jabber::Loudmouth::MessageType)
- o $priority (Net::Jabber::Loudmouth::HandlerPriority)
- o $handler_cb (scalar)
- o $user_data (scalar)
- boolean = $connection->send ($message)
- o $message (Net::Jabber::Loudmouth::Message)
- boolean = $connection->send_raw ($str)
- o $str (string)
- boolean = $connection->send_with_reply ($message, $handler)
- o $message (Net::Jabber::Loudmouth::Message)
- o $handler (Net::Jabber::Loudmouth::MessageHandler)
- message = $connection->send_with_reply_and_block ($message)
- o $message (Net::Jabber::Loudmouth::Message)
- string = $connection->get_server $connection->set_server ($server)
- o $server (string)
- ssl = $connection->get_ssl $connection->set_ssl ($ssl)
- o $ssl (Net::Jabber::Loudmouth::SSL or undef)
- connectionstate = $connection->get_state $connection->unregister_message_handler ($type, $handler)
- o $type (Net::Jabber::Loudmouth::MessageType)
- o $handler (Net::Jabber::Loudmouth::MessageHandler)
ENUMS AND FLAGS
- enum Net::Jabber::Loudmouth::ConnectionState
- o 'closed' / 'LM_CONNECTION_STATE_CLOSED'
- o 'opening' / 'LM_CONNECTION_STATE_OPENING'
- o 'open' / 'LM_CONNECTION_STATE_OPEN'
- o 'authenticating' / 'LM_CONNECTION_STATE_AUTHENTICATING'
- o 'authenticated' / 'LM_CONNECTION_STATE_AUTHENTICATED'
- enum Net::Jabber::Loudmouth::HandlerPriority
- o 'last' / 'LM_HANDLER_PRIORITY_LAST'
- o 'normal' / 'LM_HANDLER_PRIORITY_NORMAL'
- o 'first' / 'LM_HANDLER_PRIORITY_FIRST'
- enum Net::Jabber::Loudmouth::MessageType
- o 'message' / 'LM_MESSAGE_TYPE_MESSAGE'
- o 'presence' / 'LM_MESSAGE_TYPE_PRESENCE'
- o 'iq' / 'LM_MESSAGE_TYPE_IQ'
- o 'stream' / 'LM_MESSAGE_TYPE_STREAM'
- o 'stream-error' / 'LM_MESSAGE_TYPE_STREAM_ERROR'
- o 'stream-features' / 'LM_MESSAGE_TYPE_STREAM_FEATURES'
- o 'auth' / 'LM_MESSAGE_TYPE_AUTH'
- o 'challenge' / 'LM_MESSAGE_TYPE_CHALLENGE'
- o 'response' / 'LM_MESSAGE_TYPE_RESPONSE'
- o 'success' / 'LM_MESSAGE_TYPE_SUCCESS'
- o 'failure' / 'LM_MESSAGE_TYPE_FAILURE'
- o 'proceed' / 'LM_MESSAGE_TYPE_PROCEED'
- o 'starttls' / 'LM_MESSAGE_TYPE_STARTTLS'
- o 'unknown' / 'LM_MESSAGE_TYPE_UNKNOWN'
SEE ALSO
Net::Jabber::Loudmouth, Glib::Boxed
COPYRIGHT
Copyright (C) 2005 by Florian Ragwitz
- This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself, either Perl version 5.8.7 or, at
your option, any later version of Perl 5 you may have available.