#, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2014-06-26 13:17+0900\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: man-pages-posix/man3p/accept.3p:2 #, no-wrap msgid "ACCEPT" msgstr "" #. type: TH #: man-pages-posix/man3p/accept.3p:2 #, no-wrap msgid "2013" msgstr "" #. type: TH #: man-pages-posix/man3p/accept.3p:2 #, no-wrap msgid "IEEE/The Open Group" msgstr "" #. type: TH #: man-pages-posix/man3p/accept.3p:2 #, no-wrap msgid "POSIX Programmer's Manual" msgstr "" #. type: SH #: man-pages-posix/man3p/accept.3p:3 #, no-wrap msgid "PROLOG" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:8 msgid "" "This manual page is part of the POSIX Programmer's Manual. The Linux " "implementation of this interface may differ (consult the corresponding Linux " "manual page for details of Linux behavior), or the interface may not be " "implemented on Linux." msgstr "" #. type: SH #: man-pages-posix/man3p/accept.3p:9 #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:12 msgid "accept \\(em accept a new connection on a socket" msgstr "" #. type: SH #: man-pages-posix/man3p/accept.3p:12 #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:16 #, no-wrap msgid "#include Esys/socket.hE\n" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:19 #, no-wrap msgid "" "int accept(int I, struct sockaddr *restrict I
,\n" " socklen_t *restrict I);\n" msgstr "" #. type: SH #: man-pages-posix/man3p/accept.3p:20 #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:27 msgid "" "The I() function shall extract the first connection on the queue of " "pending connections, create a new socket with the same socket type protocol " "and address family as the specified socket, and allocate a new file " "descriptor for that socket." msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:31 msgid "The I() function takes the following arguments:" msgstr "" #. type: IP #: man-pages-posix/man3p/accept.3p:31 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:38 msgid "" "Specifies a socket that was created with I(), has been bound to an " "address with I(), and has issued a successful call to I()." msgstr "" #. type: IP #: man-pages-posix/man3p/accept.3p:38 #, no-wrap msgid "I
" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:42 msgid "" "Either a null pointer, or a pointer to a B structure where the " "address of the connecting socket shall be returned." msgstr "" #. type: IP #: man-pages-posix/man3p/accept.3p:42 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:50 msgid "" "Either a null pointer, if I
is a null pointer, or a pointer to a " "B object which on input specifies the length of the supplied " "B structure, and on output specifies the length of the stored " "address." msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:61 msgid "" "If I
is not a null pointer, the address of the peer for the " "accepted connection shall be stored in the B structure pointed to " "by I
, and the length of this address shall be stored in the object " "pointed to by I." msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:66 msgid "" "If the actual length of the address is greater than the length of the " "supplied B structure, the stored address shall be truncated." msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:71 msgid "" "If the protocol permits connections by unbound clients, and the peer is not " "bound, then the value stored in the object pointed to by I
is " "unspecified." msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:86 msgid "" "If the listen queue is empty of connection requests and O_NONBLOCK is not " "set on the file descriptor for the socket, I() shall block until a " "connection is present. If the I() queue is empty of connection " "requests and O_NONBLOCK is set on the file descriptor for the socket, " "I() shall fail and set I to B<[EAGAIN]> or B<[EWOULDBLOCK]>." msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:89 msgid "" "The accepted socket cannot itself accept more connections. The original " "socket remains open and can accept more connections." msgstr "" #. type: SH #: man-pages-posix/man3p/accept.3p:89 #, no-wrap msgid "RETURN VALUE" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:96 msgid "" "Upon successful completion, I() shall return the non-negative file " "descriptor of the accepted socket. Otherwise, \\(mi1 shall be returned and " "I set to indicate the error." msgstr "" #. type: SH #: man-pages-posix/man3p/accept.3p:96 #, no-wrap msgid "ERRORS" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:100 msgid "The I() function shall fail if:" msgstr "" #. type: TP #: man-pages-posix/man3p/accept.3p:100 #, no-wrap msgid "B or B" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:105 msgid "" "O_NONBLOCK is set for the socket file descriptor and no connections are " "present to be accepted." msgstr "" #. type: TP #: man-pages-posix/man3p/accept.3p:105 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:110 msgid "The I argument is not a valid file descriptor." msgstr "" #. type: TP #: man-pages-posix/man3p/accept.3p:110 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:114 msgid "A connection has been aborted." msgstr "" #. type: TP #: man-pages-posix/man3p/accept.3p:114 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:120 msgid "" "The I() function was interrupted by a signal that was caught before " "a valid connection arrived." msgstr "" #. type: TP #: man-pages-posix/man3p/accept.3p:120 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:125 msgid "The I is not accepting connections." msgstr "" #. type: TP #: man-pages-posix/man3p/accept.3p:125 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:128 msgid "All file descriptors available to the process are currently open." msgstr "" #. type: TP #: man-pages-posix/man3p/accept.3p:128 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:131 msgid "The maximum number of file descriptors in the system are already open." msgstr "" #. type: TP #: man-pages-posix/man3p/accept.3p:131 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:134 msgid "No buffer space is available." msgstr "" #. type: TP #: man-pages-posix/man3p/accept.3p:134 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:137 msgid "There was insufficient memory available to complete the operation." msgstr "" #. type: TP #: man-pages-posix/man3p/accept.3p:137 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:142 msgid "The I argument does not refer to a socket." msgstr "" #. type: TP #: man-pages-posix/man3p/accept.3p:142 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:146 msgid "" "The socket type of the specified socket does not support accepting " "connections." msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:150 msgid "The I() function may fail if:" msgstr "" #. type: TP #: man-pages-posix/man3p/accept.3p:150 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:154 msgid "" "A protocol error has occurred; for example, the STREAMS protocol stack has " "not been initialized." msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:156 msgid "I" msgstr "" #. type: SH #: man-pages-posix/man3p/accept.3p:156 #, no-wrap msgid "EXAMPLES" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:158 man-pages-posix/man3p/accept.3p:164 man-pages-posix/man3p/accept.3p:166 msgid "None." msgstr "" #. type: SH #: man-pages-posix/man3p/accept.3p:158 #, no-wrap msgid "APPLICATION USAGE" msgstr "" #. type: Plain text #: man-pages-posix/man3p/accept.3p:162 msgid "" "When a connection is available, I