summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorSlaven Rezic <srezic@iconmobile.com>2010-04-29 16:04:35 +0200
committerDavid Golden <dagolden@cpan.org>2010-05-31 20:18:00 -0400
commit321499b5be1bfbade4d0e2e11136d1d4d87a5e7f (patch)
treea8bf95cb7918e8b654946e0b71274617343103ae /dist
parent065144c63ee2795acbc962d225b0a3f8d7967ae3 (diff)
downloadperl-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.pm10
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