NAME
JLogger::Transport - base class for JLogger transport.
SYNOPSIS
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
(Re)initialize transport. Called automatically after new.
connect
Estiblish connection to jabber server.