The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

POEx::IRC::Backend::Connect - A connected IRC socket

SYNOPSIS

Typically created by POEx::IRC::Backend to represent an established connection.

DESCRIPTION

These objects contain details regarding connected socket POE::Wheel::ReadWrite wheels managed by POEx::IRC::Backend.

Consumes POEx::IRC::Backend::Role::HasWheel and adds the following attributes:

alarm_id

Connected socket wheels normally have a POE alarm ID attached for an idle timer. This attribute is writable.

Predicate: has_alarm_id

args

Arbitrary metadata attached to this connection; by default, any args attached to a POEx::IRC::Backend::Connector that spawns a POEx::IRC::Backend::Connect are passed along.

Predicate: has_args

compressed

Set to true if the Zlib filter has been added.

set_compressed

Change the boolean value of the "compressed" attrib.

idle

Idle time used for connection check alarms.

is_disconnecting

Boolean false if the Connect is not in a disconnecting state; if it is true, it is the disconnect message:

  $obj->is_disconnecting("Client quit")

is_client

Boolean true if the connection wheel has been marked as a client.

is_peer

Boolean true if the connection wheel has been marked as a peer.

is_pending_compress

Boolean true if the Wheel needs a Zlib filter.

  $obj->is_pending_compress(1)

peeraddr

The remote peer address.

peerport

The remote peer port.

protocol

The protocol in use (4 or 6).

seen

Timestamp; should be updated when traffic is seen from this Connect:

  ## In an input handler
  $obj->seen( time )

sockaddr

Our socket address.

sockport

Our socket port.

AUTHOR

Jon Portnoy <avenj@cobaltirc.org>