Are you talking about getsockopt or setsockopt? Sounds like the latter. But if you're writing it as getsockopt, that's the problem. :)getsockopt SOCKET,LEVEL,OPTNAME
If you're using IO:Socket, this is much easier:
It acts on the SOL_SOCKET level.my $sock = IO::Socket::INET->new( Listen => 5, LocalAddr => 'localhost', LocalPort => 9000, Proto => 'tcp'); $sock->setopt(SO_SNDTIMEO, 1);
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).
In reply to Re: Where can I find resources about Socket, IO::Socket, IO::Socket::INET
by btrott
in thread Where can I find resources about Socket, IO::Socket, IO::Socket::INET
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |