perlknight has asked for the wisdom of the Perl Monks concerning the following question:
I can't find anything in this example which has $listen->can('accept'), where is he pulling this method from? Thanks.package IO::SessionSet use strict; use Carp; use IO::Handle; use IO::SessionData; use vars '$DEGUG'; $DEBUG = 0; sub new { my $pack = shift; my $listen = shift; sub new { my $self = bless { sessions => {}, readers => IO::Select->new(), writers => IO::Select->new(), }, $pack; if (defined($listen) and $listen->can('accept') { $self->{listen_socket} = $listen; $self->{readers}->add($listen); } return $self; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Nonblocking IO Module
by theorbtwo (Prior) on Jul 16, 2002 at 19:36 UTC | |
|
Re: Nonblocking IO Module
by Rex(Wrecks) (Curate) on Jul 16, 2002 at 19:46 UTC |