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

NAME

POEx::IRC::Backend::Role::Connector

SYNOPSIS

A Moo::Role defining some basic common attributes for listening/connecting sockets.

DESCRIPTION

This role is consumed by POEx::IRC::Backend::Connector and POEx::IRC::Backend::Listener objects; it defines some basic attributes shared by listening/connecting sockets.

addr

The local address we are bound to.

port

The local port we are listening on.

set_port can be used to alter the current port attribute. This won't trigger any automatic "wheel" changes (at this time), but it is useful when creating a listener on port 0.

protocol

The Internet protocol version for this listener (4 or 6).

ssl

Boolean value indicating whether connections should be SSLified.

wheel

The POE::Wheel::SocketFactory instance for this listener.

Can be cleared via clear_wheel; use has_wheel to determine if this listener's wheel has been cleared.

Can be replaced via set_wheel (although whether this is a good idea or not is debatable; better to spawn a new instance of your class)

wheel_id

The POE ID of the last known "wheel".

AUTHOR

Jon Portnoy <avenj@cobaltirc.org>