Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Answer: Where can I find resources about Socket, IO::Socket, IO::Socket::INET

by btrott (Parson)
on Apr 21, 2000 at 19:25 UTC ( #8385=categorized answer: print w/replies, xml ) Need Help??

Q&A > network programming > Where can I find resources about Socket, IO::Socket, IO::Socket::INET - Answer contributed by btrott

That's not what the perlfunc entry for *my* getsockopt says--mine says:
Are you talking about getsockopt or setsockopt? Sounds like the latter. But if you're writing it as getsockopt, that's the problem. :)

If you're using IO:Socket, this is much easier:

my $sock = IO::Socket::INET->new( Listen => 5, LocalAddr => 'localhost', LocalPort => 9000, Proto => 'tcp'); $sock->setopt(SO_SNDTIMEO, 1);
It acts on the SOL_SOCKET level.

In terms of a general resource--you said you've read the man pages. Have you read the man pages for the C functions that all this stuff is based on? Those might help you out. The options for setsockopt/getsockopt are in setsockopt(2).

Log In?

What's my password?
Create A New User
[TStanley]: Time flies when you're busy :D
LanX hasn't entered monk puberty yet
erix clocks 12 years
[TStanley]: talexb I was actually in your area last week. I was working in Milton, Ontario at the hospital they are building there.
Eily hasn't entered monk school
[Eily]: there are some special array variables that are not interpolated in double strings, like @*, @/, @(, and @)
[Eily]: is this documented somwhere?

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2017-06-23 13:55 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (547 votes). Check out past polls.