diff options
author | Slaven Rezic <srezic@iconmobile.com> | 2010-04-29 16:04:35 +0200 |
---|---|---|
committer | David Golden <dagolden@cpan.org> | 2010-05-31 20:18:00 -0400 |
commit | 321499b5be1bfbade4d0e2e11136d1d4d87a5e7f (patch) | |
tree | a8bf95cb7918e8b654946e0b71274617343103ae /dist | |
parent | 065144c63ee2795acbc962d225b0a3f8d7967ae3 (diff) | |
download | perl-321499b5be1bfbade4d0e2e11136d1d4d87a5e7f.tar.gz |
Document IO::Socket getsockopt and setsockopt
get/setsockopt are not explicitly documented. Note that the documented
sockopt() method is a wrapper around get/setsockopt, but does not cover
all cases because of the hardcoded level (= SOL_SOCKET).
Diffstat (limited to 'dist')
-rw-r--r-- | dist/IO/lib/IO/Socket.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dist/IO/lib/IO/Socket.pm b/dist/IO/lib/IO/Socket.pm index 9938c7807a..6d4f6ab612 100644 --- a/dist/IO/lib/IO/Socket.pm +++ b/dist/IO/lib/IO/Socket.pm @@ -493,6 +493,16 @@ an AF_INET socket the value of &AF_INET will be returned. Unified method to both set and get options in the SOL_SOCKET level. If called with one argument then getsockopt is called, otherwise setsockopt is called. +=item getsockopt(LEVEL, OPT) + +Get option associated with the socket. Other levels than SOL_SOCKET +may be specified here. + +=item setsockopt(LEVEL, OPT, VAL) + +Set option associated with the socket. Other levels than SOL_SOCKET +may be specified here. + =item socktype Returns the numerical number for the socket type. For example, for |