#, fuzzy msgid "" msgstr "" "Project-Id-Version: man-pages-l10n VERSION\n" "POT-Creation-Date: 2014-07-17 17:53+0900\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: man-pages/man2/connect.2:67 #, no-wrap msgid "CONNECT" msgstr "" #. type: TH #: man-pages/man2/connect.2:67 #, no-wrap msgid "2014-07-08" msgstr "" #. type: TH #: man-pages/man2/connect.2:67 #, no-wrap msgid "Linux" msgstr "" #. type: TH #: man-pages/man2/connect.2:67 #, no-wrap msgid "Linux Programmer's Manual" msgstr "" #. type: SH #: man-pages/man2/connect.2:68 #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:70 msgid "connect - initiate a connection on a socket" msgstr "" #. type: SH #: man-pages/man2/connect.2:70 #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:73 #, no-wrap msgid "B<#include Esys/types.hE> /* See NOTES */\n" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:75 #, no-wrap msgid "B<#include Esys/socket.hE>\n" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:78 #, no-wrap msgid "" "BIB<, const struct sockaddr *>IB<,>\n" "B< socklen_t >IB<);>\n" msgstr "" #. type: SH #: man-pages/man2/connect.2:79 #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:97 msgid "" "The B() system call connects the socket referred to by the file " "descriptor I to the address specified by I. The I " "argument specifies the size of I. The format of the address in " "I is determined by the address space of the socket I; see " "B(2) for further details." msgstr "" #. type: Plain text #: man-pages/man2/connect.2:113 msgid "" "If the socket I is of type B, then I is the " "address to which datagrams are sent by default, and the only address from " "which datagrams are received. If the socket is of type B or " "B, this call attempts to make a connection to the socket " "that is bound to the address specified by I." msgstr "" #. type: Plain text #: man-pages/man2/connect.2:127 msgid "" "Generally, connection-based protocol sockets may successfully B() " "only once; connectionless protocol sockets may use B() multiple " "times to change their association. Connectionless sockets may dissolve the " "association by connecting to an address with the I member of " "I set to B (supported on Linux since kernel 2.2)." msgstr "" #. type: SH #: man-pages/man2/connect.2:127 #, no-wrap msgid "RETURN VALUE" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:132 msgid "" "If the connection or binding succeeds, zero is returned. On error, -1 is " "returned, and I is set appropriately." msgstr "" #. type: SH #: man-pages/man2/connect.2:132 #, no-wrap msgid "ERRORS" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:135 msgid "" "The following are general socket errors only. There may be other domain-" "specific error codes." msgstr "" #. type: TP #: man-pages/man2/connect.2:135 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:143 msgid "" "For UNIX domain sockets, which are identified by pathname: Write permission " "is denied on the socket file, or search permission is denied for one of the " "directories in the path prefix. (See also B(7).)" msgstr "" #. type: TP #: man-pages/man2/connect.2:143 #, no-wrap msgid "B, B" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:148 msgid "" "The user tried to connect to a broadcast address without having the socket " "broadcast flag enabled or the connection request failed because of a local " "firewall rule." msgstr "" #. type: TP #: man-pages/man2/connect.2:148 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:151 msgid "Local address is already in use." msgstr "" #. type: TP #: man-pages/man2/connect.2:151 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:164 msgid "" "(Internet domain sockets) The socket referred to by I had not " "previously been bound to an address and, upon attempting to bind it to an " "ephemeral port, it was determined that all port numbers in the ephemeral " "port range are currently in use. See the discussion of I in B(7)." msgstr "" #. type: TP #: man-pages/man2/connect.2:164 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:169 msgid "" "The passed address didn't have the correct address family in its " "I field." msgstr "" #. type: TP #: man-pages/man2/connect.2:169 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:172 msgid "Insufficient entries in the routing cache." msgstr "" #. type: TP #: man-pages/man2/connect.2:172 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:176 msgid "" "The socket is nonblocking and a previous connection attempt has not yet been " "completed." msgstr "" #. type: TP #: man-pages/man2/connect.2:176 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:179 msgid "The file descriptor is not a valid index in the descriptor table." msgstr "" #. type: TP #: man-pages/man2/connect.2:179 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:182 msgid "No-one listening on the remote address." msgstr "" #. type: TP #: man-pages/man2/connect.2:182 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:185 msgid "The socket structure address is outside the user's address space." msgstr "" #. type: TP #: man-pages/man2/connect.2:185 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:210 msgid "" "The socket is nonblocking and the connection cannot be completed immediately." " It is possible to B(2) indicates writability, use " "B(2) to read the B option at level B to " "determine whether B() completed successfully (B is zero) " "or unsuccessfully (B is one of the usual error codes listed here, " "explaining the reason for the failure)." msgstr "" #. type: TP #: man-pages/man2/connect.2:210 #, no-wrap msgid "B" msgstr "" #. For TCP, the connection will complete asynchronously. #. See http://lkml.org/lkml/2005/7/12/254 #. type: Plain text #: man-pages/man2/connect.2:216 msgid "" "The system call was interrupted by a signal that was caught; see " "B(7)." msgstr "" #. type: TP #: man-pages/man2/connect.2:216 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:219 msgid "The socket is already connected." msgstr "" #. type: TP #: man-pages/man2/connect.2:219 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:222 msgid "Network is unreachable." msgstr "" #. type: TP #: man-pages/man2/connect.2:222 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:225 msgid "The file descriptor is not associated with a socket." msgstr "" #. type: TP #: man-pages/man2/connect.2:225 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:230 msgid "" "The socket type does not support the requested communications protocol. " "This error can occur, for example, on an attempt to connect a UNIX domain " "datagram socket to a stream socket." msgstr "" #. type: TP #: man-pages/man2/connect.2:230 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:237 msgid "" "Timeout while attempting connection. The server may be too busy to accept " "new connections. Note that for IP sockets the timeout may be very long when " "syncookies are enabled on the server." msgstr "" #. type: SH #: man-pages/man2/connect.2:237 #, no-wrap msgid "CONFORMING TO" msgstr "" #. SVr4 documents the additional #. general error codes #. .BR EADDRNOTAVAIL , #. .BR EINVAL , #. .BR EAFNOSUPPORT , #. .BR EALREADY , #. .BR EINTR , #. .BR EPROTOTYPE , #. and #. .BR ENOSR . #. It also #. documents many additional error conditions not described here. #. type: Plain text #: man-pages/man2/connect.2:253 msgid "" "SVr4, 4.4BSD, (the B() function first appeared in 4.2BSD), POSIX.1-" "2001." msgstr "" #. type: SH #: man-pages/man2/connect.2:253 #, no-wrap msgid "NOTES" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:259 msgid "" "POSIX.1-2001 does not require the inclusion of Isys/types.hE>, and " "this header file is not required on Linux. However, some historical (BSD) " "implementations required this header file, and portable applications are " "probably wise to include it." msgstr "" #. type: Plain text #: man-pages/man2/connect.2:270 msgid "" "The third argument of B() is in reality an I (and this is " "what 4.x BSD and libc4 and libc5 have). Some POSIX confusion resulted in " "the present I, also used by glibc. See also B(2)." msgstr "" #. type: SH #: man-pages/man2/connect.2:270 #, no-wrap msgid "EXAMPLE" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:275 msgid "An example of the use of B() is shown in B(3)." msgstr "" #. type: SH #: man-pages/man2/connect.2:275 #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:282 msgid "" "B(2), B(2), B(2), B(2), B(2), " "B(7)" msgstr "" #. type: SH #: man-pages/man2/connect.2:282 #, no-wrap msgid "COLOPHON" msgstr "" #. type: Plain text #: man-pages/man2/connect.2:290 msgid "" "This page is part of release 3.70 of the Linux I project. A " "description of the project, information about reporting bugs, and the latest " "version of this page, can be found at \\%http://www.kernel.org/doc/man-pages/" "." msgstr ""