Loading ...
Sorry, an error occurred while loading the content.

Re: using soap:lite as daemon, capturing the clients IP ?? Help

Expand Messages
  • rahed
    On Thu, Feb 19, 2009 at 2:56 PM, dennis.davidoff ... I use ForkOnAccept module which is part of the distribution: $daemon- ForkOnAccept::handle; ... package
    Message 1 of 3 , Feb 20, 2009
    • 0 Attachment
      On Thu, Feb 19, 2009 at 2:56 PM, dennis.davidoff
      <dennis.davidoff@...> wrote:
      > Please, show an example.

      I use ForkOnAccept module which is part of the distribution:
      $daemon->ForkOnAccept::handle;
      ...

      package ForkOnAccept;
      ...
      sub handle {
      my $self = shift->new;

      CLIENT:
      while (my $c = $self->accept) {
      my $address = $c->peerhost;
      ....

      Where $c is the object of the connected socket.
      Actually I do not call peerhost to use it further.


      --
      Radek
    Your message has been successfully submitted and would be delivered to recipients shortly.