in reply to Re: How to set a timeout for the socket filehandle generated by POE::Wheel::SocketFactory ?
in thread How to set a timeout for the socket filehandle generated by POE::Wheel::SocketFactory ?

Here is my OS:
[larry@localhost ]$ uname -a Linux localhost 2.6.21 #1 SMP Mon Nov 3 16:32:36 CST 2008 x86_64 x86_6 +4 x86_64 GNU/Linux
and I add the setsockopt line just like the following reference:
http://perldesignpatterns.com/?SocketProgramming

I can't figure out which param is the evil :(.

  • Comment on Re^2: How to set a timeout for the socket filehandle generated by POE::Wheel::SocketFactory ?
  • Download Code

Replies are listed 'Best First'.
Re^3: How to set a timeout for the socket filehandle generated by POE::Wheel::SocketFactory ?
by rcaputo (Chaplain) on Dec 31, 2008 at 02:17 UTC

    You didn't use the same pack() pattern that perldesignpatterns.com does. That page shows pack('LL', 15, 0) while your original example uses 'll'. Uppercase 'LL' and lowercase 'll' are a bit different.

    Perhaps more importantly, that page explains why it uses 'LL' and how to determine what should work for you. The instructions look good, so I recommend following them (if you haven't already).

    You may wish to carefully compare the example with your code. You may be overlooking some other difference.