Hello,
> > sub handle_client {
> > my $event = shift;
> > $event->w->private->accept();
> > }
> >
> > I want to be able to pass $socket to handle_client().
> > I though i would use private to do this.
>
> Try using the data() attribute instead of private().
in my opinion, the socket can be accessed directly without the data
attribute because it's already accessible via fd:
sub handle_client
{
my $event=shift;
$event->w->fd->accept();
}
Jochen
- Re: Event module Joshua N Pritikin
- Re: Event module Jochen Stenzel
- Re: Event module Peter Marelas
- Re: Event Module Joshua Pritikin
- Re: Event Module Jochen Stenzel
- Re: Event Module Jim Colten
- Re: Event Module Jochen Stenzel
