Index: Doc/lib/libsocket.tex =================================================================== --- Doc/lib/libsocket.tex (revision 55792) +++ Doc/lib/libsocket.tex (arbetskopia) @@ -80,7 +80,8 @@ \method{setblocking()}. A generalization of this based on timeouts is supported through \method{settimeout()}. -The module \module{socket} exports the following constants and functions: +The module \module{socket} exports the following exceptions, constants +and functions: \begin{excdesc}{error} @@ -123,13 +124,68 @@ \versionadded{2.3} \end{excdesc} -\begin{datadesc}{AF_UNIX} +These constants represent the address (and protocol) families, used +for the first argument to \function{socket()}. The most frequently +used are \constant{AF_INET} and \constant{AF_INET6} for IP and IPv6 +sockets respectively. Note that some of these constants may not be +defined on your system and that most of them are unsupported. + +\begin{datadesc}{} +\dataline{AF_APPLETALK} +AppleTalk DDP protocol +\dataline{AF_ASH} +Ash +\dataline{AF_ATMPVC} +ATM PVCs +\dataline{AF_ATMSVC} +ATM SVCs +\dataline{AF_AX25} +Amateur Radio AX.25 +\dataline{AF_BLUETOOTH} +Bluetooth +\dataline{AF_BRIDGE} +Multiprotocol Bridge +\dataline{AF_DECnet} +Reserved for DECnet project +\dataline{AF_ECONET} +Acorn Econet \dataline{AF_INET} +IP sockets. \dataline{AF_INET6} -These constants represent the address (and protocol) families, -used for the first argument to \function{socket()}. If the -\constant{AF_UNIX} constant is not defined then this protocol is -unsupported. +IP version 6 sockets. +\dataline{AF_IPX} +Novell IPX +\dataline{AF_IRDA} +IRDA sockets +\dataline{AF_KEY} +PF_KEY management API +\dataline{AF_NETBEUI} +Reserved for 802.2LLC project +\dataline{AF_NETLINK} +NETLINK +\dataline{AF_NETROM} +Amateur radio NetROM +\dataline{AF_PACKET} +Packet family +\dataline{AF_PPPOX} +PPPoX sockets +\dataline{AF_ROSE} +Amateur Radio X.25 PLP +\dataline{AF_ROUTE} +Alias to emulate 4.4BSD +\dataline{AF_SECURITY} +Security callback pseudo AF +\dataline{AF_SNA} +Linux SNA project +\dataline{AF_UNIX} +UNIX domain sockets. If this constant is not defined, then this +protocol is not supported. +\dataline{AF_UNSPEC} +Unspecified address family +\dataline{AF_WANPIPE} +Wanpipe API Sockets +\dataline{AF_X25} +Reserved for X.25 project \end{datadesc} \begin{datadesc}{SOCK_STREAM}