Net::Jabber::Loudmouth::Connection.3pm

Langue: en

Autres versions - même langue

Version: 2008-05-02 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

Net::Jabber::Loudmouth::Connection

HIERARCHY

   Glib::Boxed
   +----Net::Jabber::Loudmouth::Connection
 
 

METHODS


connection = Net::Jabber::Loudmouth::Connection->new ($server)

$server (string)

connection = Net::Jabber::Loudmouth::Connection->new_with_context ($server, $context)


connection = Net::Jabber::Loudmouth::Connection->new_with_context ($server, $context)

$server (string)
$context (Glib::MainContext thingamabob)

boolean = $connection->authenticate ($username, $password, $resource, $auth_cb, $user_data=undef)


boolean = $connection->authenticate ($username, $password, $resource, $auth_cb, $user_data=undef)

$username (string)
$password (string)
$resource (string)
$auth_cb (scalar)
$user_data (scalar)

boolean = $connection->authenticate_and_block ($username, $password, $resource)


boolean = $connection->authenticate_and_block ($username, $password, $resource)

$username (string)
$password (string)
$resource (string)

$connection->cancel_open


$connection->cancel_open


boolean = $connection->close


boolean = $connection->close


$connection->set_disconnect_function ($disconnect_cb, $user_data=undef)


$connection->set_disconnect_function ($disconnect_cb, $user_data=undef)

$disconnect_cb (scalar)
$user_data (scalar)

boolean = $connection->is_authenticated


boolean = $connection->is_authenticated


boolean = $connection->is_open


boolean = $connection->is_open


string = $connection->get_jid


string = $connection->get_jid


$connection->set_jid ($jid)


$connection->set_jid ($jid)

$jid (string)

$connection->set_keep_alive_rate ($rate)


$connection->set_keep_alive_rate ($rate)

$rate (integer)

boolean = $connection->open ($result_cb, $user_data=undef)


boolean = $connection->open ($result_cb, $user_data=undef)

$result_cb (scalar)
$user_data (scalar)

boolean = $connection->open_and_block


boolean = $connection->open_and_block


integer = $connection->get_port


integer = $connection->get_port


$connection->set_port ($port)


$connection->set_port ($port)

$port (integer)

proxy = $connection->get_proxy


proxy = $connection->get_proxy


$connection->set_proxy ($proxy)


$connection->set_proxy ($proxy)

$proxy (Net::Jabber::Loudmouth::Proxy or undef)

messagehandler = $connection->register_message_handler ($type, $priority, $handler_cb, $user_data=undef)


messagehandler = $connection->register_message_handler ($type, $priority, $handler_cb, $user_data=undef)

$type (Net::Jabber::Loudmouth::MessageType)
$priority (Net::Jabber::Loudmouth::HandlerPriority)
$handler_cb (scalar)
$user_data (scalar)

boolean = $connection->send ($message)


boolean = $connection->send ($message)

$message (Net::Jabber::Loudmouth::Message)

boolean = $connection->send_raw ($str)


boolean = $connection->send_raw ($str)

$str (string)

boolean = $connection->send_with_reply ($message, $handler)


boolean = $connection->send_with_reply ($message, $handler)

$message (Net::Jabber::Loudmouth::Message)
$handler (Net::Jabber::Loudmouth::MessageHandler)

message = $connection->send_with_reply_and_block ($message)


message = $connection->send_with_reply_and_block ($message)

$message (Net::Jabber::Loudmouth::Message)

string = $connection->get_server


string = $connection->get_server


$connection->set_server ($server)


$connection->set_server ($server)

$server (string)

ssl = $connection->get_ssl


ssl = $connection->get_ssl


$connection->set_ssl ($ssl)


$connection->set_ssl ($ssl)

$ssl (Net::Jabber::Loudmouth::SSL or undef)

connectionstate = $connection->get_state


connectionstate = $connection->get_state


$connection->unregister_message_handler ($type, $handler)


$connection->unregister_message_handler ($type, $handler)

$type (Net::Jabber::Loudmouth::MessageType)
$handler (Net::Jabber::Loudmouth::MessageHandler)

ENUMS AND FLAGS


enum Net::Jabber::Loudmouth::ConnectionState

'closed' / 'LM_CONNECTION_STATE_CLOSED'
'opening' / 'LM_CONNECTION_STATE_OPENING'
'open' / 'LM_CONNECTION_STATE_OPEN'
'authenticating' / 'LM_CONNECTION_STATE_AUTHENTICATING'
'authenticated' / 'LM_CONNECTION_STATE_AUTHENTICATED'

enum Net::Jabber::Loudmouth::HandlerPriority

'last' / 'LM_HANDLER_PRIORITY_LAST'
'normal' / 'LM_HANDLER_PRIORITY_NORMAL'
'first' / 'LM_HANDLER_PRIORITY_FIRST'

enum Net::Jabber::Loudmouth::MessageType

'message' / 'LM_MESSAGE_TYPE_MESSAGE'
'presence' / 'LM_MESSAGE_TYPE_PRESENCE'
'iq' / 'LM_MESSAGE_TYPE_IQ'
'stream' / 'LM_MESSAGE_TYPE_STREAM'
'stream-error' / 'LM_MESSAGE_TYPE_STREAM_ERROR'
'stream-features' / 'LM_MESSAGE_TYPE_STREAM_FEATURES'
'auth' / 'LM_MESSAGE_TYPE_AUTH'
'challenge' / 'LM_MESSAGE_TYPE_CHALLENGE'
'response' / 'LM_MESSAGE_TYPE_RESPONSE'
'success' / 'LM_MESSAGE_TYPE_SUCCESS'
'failure' / 'LM_MESSAGE_TYPE_FAILURE'
'proceed' / 'LM_MESSAGE_TYPE_PROCEED'
'starttls' / 'LM_MESSAGE_TYPE_STARTTLS'
'unknown' / 'LM_MESSAGE_TYPE_UNKNOWN'

SEE ALSO

Net::Jabber::Loudmouth, Glib::Boxed Copyright (C) 2008 Gtk2-Perl Team

This software is licensed under the LGPL; see Net::Jabber::Loudmouth for a full notice.