Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Setting timeout threhold when connecting to a socket.

by Zaxo (Archbishop)
on Dec 14, 2001 at 00:33 UTC ( [id://131753]=note: print w/replies, xml ) Need Help??

in reply to Setting timeout threshold when connecting to a socket.

perldoc -f setsockopt:

Sets the socket option requested. Returns undefined if there is an error. OPTVAL may be specified as "undef" if you don't want to pass an argument.
Update: use Socket; contains the symbols for the options. That will save autoloating inet_aton() too

After Compline,

Replies are listed 'Best First'.
Re: Re: Setting timeout threhold when connecting to a socket.
by ehdonhon (Curate) on Dec 14, 2001 at 00:40 UTC

    Thanks, but I've alread read that (in fact, I even created a link to that in my original message). Either I am missing something really obvious, or the perldoc isn't al that helpful here

    I guess my questions are: what is the correct OPTNAME to control the connection timeout, and how do I do I know what kind of data structure to use in OPTVAL?

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-06-20 22:17 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.