in reply to Re: Getting port number with AnyEvent::Socket
in thread Getting port number with AnyEvent::Socket

Gives me the listening port rather than the random port the connections comming from!
  • Comment on Re^2: Getting port number with AnyEvent::Socket

Replies are listed 'Best First'.
Re^3: Getting port number with AnyEvent::Socket
by Anonymous Monk on Jun 13, 2010 at 13:07 UTC
      I love you :D

      What i actually ended up with is my ($port,$addr) = sockaddr_in(getpeername($shandle->fh));

      Which works like a charm!