Сергей Засенко > JLogger-1.001 > JLogger::Transport

Download:
JLogger-1.001.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

JLogger::Transport - base class for JLogger transport.

SYNOPSIS ^

    use base 'JLogger::Transport';

    sub init {
        my $self = shift;

        ...
    }

    sub connect {
        my $self = shift;

        ...
    }

ATTRIBUTES ^

JLogger::Transport implements following attributes.

host

    my $host = $transport->host;

port

    my $port = $transport->port;

secret

    my $secret = $transport->secret;

on_message

    $transport->on_message(sub {
        my ($transport, $xml) = @_;

        ...
    });

    my $cb = $transport->on_message;

METHODS ^

init

    $transport->init;

(Re)initialize transport. Called automatically after new.

connect

    $transport->connect;

Estiblish connection to jabber server.

syntax highlighting: