Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: How to set a timeout for the socket filehandle generated by POE::Wheel::SocketFactory ?

by sunshine_august (Scribe)
on Dec 30, 2008 at 06:41 UTC ( [id://733198]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://733198]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-24 22:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found