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


Reply via email to