From: Slaven Rezic Date: Thu, 29 Apr 2010 14:04:35 +0000 (+0200) Subject: Document IO::Socket getsockopt and setsockopt X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=321499b5be1bfbade4d0e2e11136d1d4d87a5e7f;p=p5sagit%2Fp5-mst-13.2.git 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). --- diff --git a/dist/IO/lib/IO/Socket.pm b/dist/IO/lib/IO/Socket.pm index 9938c78..6d4f6ab 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