#, fuzzy msgid "" msgstr "" "Project-Id-Version: man-pages-l10n VERSION\n" "POT-Creation-Date: 2014-07-17 17:57+0900\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: man-pages/man7/socket.7:56 #, no-wrap msgid "SOCKET" msgstr "" #. type: TH #: man-pages/man7/socket.7:56 #, no-wrap msgid "2014-07-08" msgstr "" #. type: TH #: man-pages/man7/socket.7:56 #, no-wrap msgid "Linux" msgstr "" #. type: TH #: man-pages/man7/socket.7:56 #, no-wrap msgid "Linux Programmer's Manual" msgstr "" #. type: SH #: man-pages/man7/socket.7:57 #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: man-pages/man7/socket.7:59 msgid "socket - Linux socket interface" msgstr "" #. type: SH #: man-pages/man7/socket.7:59 #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: man-pages/man7/socket.7:61 msgid "B<#include Esys/socket.hE>" msgstr "" #. type: Plain text #: man-pages/man7/socket.7:63 msgid "" "IB< = socket(int >IB<, int >IB<, int " ">IB<);>" msgstr "" #. type: SH #: man-pages/man7/socket.7:63 #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: man-pages/man7/socket.7:82 msgid "" "This manual page describes the Linux networking socket layer user interface. " " The BSD compatible sockets are the uniform interface between the user " "process and the network protocol stacks in the kernel. The protocol modules " "are grouped into I such as B, B, and " "B, and I such as B or B. " "See B(2) for more information on families and types." msgstr "" #. type: SS #: man-pages/man7/socket.7:82 #, no-wrap msgid "Socket-layer functions" msgstr "" #. type: Plain text #: man-pages/man7/socket.7:86 msgid "" "These functions are used by the user process to send or receive packets and " "to do other socket operations. For more information see their respective " "manual pages." msgstr "" #. type: Plain text #: man-pages/man7/socket.7:102 msgid "" "B(2) creates a socket, B(2) connects a socket to a remote " "socket address, the B(2) function binds a socket to a local socket " "address, B(2) tells the socket that new connections shall be " "accepted, and B(2) is used to get a new socket with a new incoming " "connection. B(2) returns two connected anonymous sockets " "(implemented only for a few local families like B)" msgstr "" #. type: Plain text #: man-pages/man7/socket.7:124 msgid "" "B(2), B(2), and B(2) send data over a socket, and " "B(2), B(2), B(2) receive data from a socket. " "B(2) and B(2)." msgstr "" #. type: tbl table #: man-pages/man7/socket.7:167 #, no-wrap msgid "I/O events\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:168 #, no-wrap msgid "Event:Poll flag:Occurrence\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:169 man-pages/man7/socket.7:172 #, no-wrap msgid "Read:POLLIN:T{\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:170 #, no-wrap msgid "New data arrived.\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:171 man-pages/man7/socket.7:175 man-pages/man7/socket.7:178 man-pages/man7/socket.7:184 man-pages/man7/socket.7:187 man-pages/man7/socket.7:196 man-pages/man7/socket.7:203 #, no-wrap msgid "T}\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:173 #, no-wrap msgid "A connection setup has been completed\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:174 #, no-wrap msgid "(for connection-oriented sockets)\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:176 man-pages/man7/socket.7:179 #, no-wrap msgid "Read:POLLHUP:T{\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:177 #, no-wrap msgid "A disconnection request has been initiated by the other end.\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:180 #, no-wrap msgid "A connection is broken (only for connection-oriented protocols).\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:181 #, no-wrap msgid "When the socket is written\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:182 #, no-wrap msgid "B\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:183 #, no-wrap msgid "is also sent.\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:185 #, no-wrap msgid "Write:POLLOUT:T{\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:186 #, no-wrap msgid "Socket has enough send buffer space for writing new data.\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:188 #, no-wrap msgid "Read/Write:T{\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:189 #, no-wrap msgid "POLLIN|\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:190 #, no-wrap msgid ".br\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:191 #, no-wrap msgid "POLLOUT\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:192 #, no-wrap msgid "T}:T{\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:193 #, no-wrap msgid "An outgoing\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:194 #, no-wrap msgid "B(2)\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:195 #, no-wrap msgid "finished.\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:197 #, no-wrap msgid "Read/Write:POLLERR:An asynchronous error occurred.\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:198 #, no-wrap msgid "Read/Write:POLLHUP:The other end has shut down one direction.\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:199 #, no-wrap msgid "Exception:POLLPRI:T{\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:200 #, no-wrap msgid "Urgent data arrived.\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:201 #, no-wrap msgid "B\n" msgstr "" #. type: tbl table #: man-pages/man7/socket.7:202 #, no-wrap msgid "is sent then.\n" msgstr "" #. type: Plain text #: man-pages/man7/socket.7:231 msgid "" "An alternative to B(2) and B(2) and B(2) system calls currently do not respect the " "B setting on Linux, and mark a socket readable when even a " "single byte of data is available. A subsequent read from the socket will " "block until B bytes are available." msgstr "" #. type: TP #: man-pages/man7/socket.7:612 #, no-wrap msgid "B and B" msgstr "" #. Not implemented in 2.0. #. Implemented in 2.1.11 for getsockopt: always return a zero struct. #. Implemented in 2.3.41 for setsockopt, and actually used. #. in fact to EAGAIN #. type: Plain text #: man-pages/man7/socket.7:647 msgid "" "Specify the receiving or sending timeouts until reporting an error. The " "argument is a I. If an input or output function blocks for " "this period of time, and data has been sent or received, the return value of " "that function will be the amount of data transferred; if no data has been " "transferred and the timeout has been reached, then -1 is returned with " "I set to B or B, or B (for " "B(2)) just as if the socket was specified to be nonblocking. If " "the timeout is set to zero (the default), then the operation will never " "timeout. Timeouts only have effect for system calls that perform socket I/O " "(e.g., B(2), B(2), B(2), B(2)); timeouts have " "no effect for B(2) and B(2) will busy poll when they operate on sockets " "with B set and no events to report are found." msgstr "" #. type: Plain text #: man-pages/man7/socket.7:738 msgid "" "In both cases, busy polling will only be done when the socket last received " "data from a network device that supports this option." msgstr "" #. type: Plain text #: man-pages/man7/socket.7:742 msgid "" "While busy polling may improve latency of some applications, care must be " "taken when using it since this will increase both CPU utilization and power " "usage." msgstr "" #. type: SS #: man-pages/man7/socket.7:742 #, no-wrap msgid "Signals" msgstr "" #. type: Plain text #: man-pages/man7/socket.7:753 msgid "" "When writing onto a connection-oriented socket that has been shut down (by " "the local or the remote end) B is sent to the writing process and " "B is returned. The signal is not sent when the write call specified " "the B flag." msgstr "" #. type: Plain text #: man-pages/man7/socket.7:778 msgid "" "When requested with the B B(2) or B " "B(2), B is sent when an I/O event occurs. It is possible to " "use B(2) or B