diff options
Diffstat (limited to 'usr/src/man/man3xnet/connect.3xnet')
-rw-r--r-- | usr/src/man/man3xnet/connect.3xnet | 79 |
1 files changed, 8 insertions, 71 deletions
diff --git a/usr/src/man/man3xnet/connect.3xnet b/usr/src/man/man3xnet/connect.3xnet index f56eff4bcd..50c08bb6c2 100644 --- a/usr/src/man/man3xnet/connect.3xnet +++ b/usr/src/man/man3xnet/connect.3xnet @@ -1,13 +1,13 @@ '\" te .\" Copyright 1994, The X/Open Company Ltd. All Rights Reserved Portions Copyright 1989 AT&T Portions Copyright (c) 1998, Sun Microsystems, Inc. All Rights Reserved -.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at +.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at .\" http://www.opengroup.org/bookstore/. .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html. .\" This notice shall appear on any product containing this material. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH connect 3XNET "10 Jun 2002" "SunOS 5.11" "X/Open Networking Services Library Functions" +.TH CONNECT 3XNET "Jun 10, 2002" .SH NAME connect \- connect a socket .SH SYNOPSIS @@ -27,35 +27,29 @@ The \fBconnect()\fR function requests a connection to be made on a socket. The function takes the following arguments: .sp .ne 2 -.mk .na \fB\fIsocket\fR\fR .ad .RS 15n -.rt Specifies the file descriptor associated with the socket. .RE .sp .ne 2 -.mk .na \fB\fIaddress\fR\fR .ad .RS 15n -.rt Points to a \fBsockaddr\fR structure containing the peer address. The length and format of the address depend on the address family of the socket. .RE .sp .ne 2 -.mk .na \fB\fIaddress_len\fR\fR .ad .RS 15n -.rt Specifies the length of the \fBsockaddr\fR structure pointed to by the \fIaddress\fR argument. .RE @@ -122,80 +116,66 @@ returned and \fBerrno\fR is set to indicate the error. The \fBconnect()\fR function will fail if: .sp .ne 2 -.mk .na \fB\fBEADDRNOTAVAIL\fR\fR .ad .RS 17n -.rt The specified address is not available from the local machine. .RE .sp .ne 2 -.mk .na \fB\fBEAFNOSUPPORT\fR\fR .ad .RS 17n -.rt The specified address is not a valid address for the address family of the specified socket. .RE .sp .ne 2 -.mk .na \fB\fBEALREADY\fR\fR .ad .RS 17n -.rt A connection request is already in progress for the specified socket. .RE .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 17n -.rt The \fIsocket\fR argument is not a valid file descriptor. .RE .sp .ne 2 -.mk .na \fB\fBECONNREFUSED\fR\fR .ad .RS 17n -.rt The target address was not listening for connections or refused the connection request. .RE .sp .ne 2 -.mk .na \fB\fBEFAULT\fR\fR .ad .RS 17n -.rt The address parameter can not be accessed. .RE .sp .ne 2 -.mk .na \fB\fBEINPROGRESS\fR\fR .ad .RS 17n -.rt O_NONBLOCK is set for the file descriptor for the socket and the connection cannot be immediately established; the connection will be established asynchronously. @@ -203,69 +183,57 @@ asynchronously. .sp .ne 2 -.mk .na \fB\fBEINTR\fR\fR .ad .RS 17n -.rt The attempt to establish a connection was interrupted by delivery of a signal that was caught; the connection will be established asynchronously. .RE .sp .ne 2 -.mk .na \fB\fBEISCONN\fR\fR .ad .RS 17n -.rt The specified socket is connection-mode and is already connected. .RE .sp .ne 2 -.mk .na \fB\fBENETUNREACH\fR\fR .ad .RS 17n -.rt No route to the network is present. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 17n -.rt The \fIsocket\fR argument does not refer to a socket. .RE .sp .ne 2 -.mk .na \fB\fBEPROTOTYPE\fR\fR .ad .RS 17n -.rt The specified address has a different type than the socket bound to the specified peer address. .RE .sp .ne 2 -.mk .na \fB\fBETIMEDOUT\fR\fR .ad .RS 17n -.rt The attempt to connect timed out before a connection was made. .RE @@ -275,59 +243,49 @@ If the address family of the socket is AF_UNIX, then \fBconnect()\fR will fail if: .sp .ne 2 -.mk .na \fB\fBEIO\fR\fR .ad .RS 16n -.rt An I/O error occurred while reading from or writing to the file system. .RE .sp .ne 2 -.mk .na \fB\fBELOOP\fR\fR .ad .RS 16n -.rt Too many symbolic links were encountered in translating the pathname in \fIaddress\fR. .RE .sp .ne 2 -.mk .na \fB\fBENAMETOOLONG\fR\fR .ad .RS 16n -.rt A component of a pathname exceeded \fINAME_MAX\fR characters, or an entire pathname exceeded \fIPATH_MAX\fR characters. .RE .sp .ne 2 -.mk .na \fB\fBENOENT\fR\fR .ad .RS 16n -.rt A component of the pathname does not name an existing file or the pathname is an empty string. .RE .sp .ne 2 -.mk .na \fB\fBENOTDIR\fR\fR .ad .RS 16n -.rt A component of the path prefix of the pathname in \fIaddress\fR is not a directory. .RE @@ -337,115 +295,95 @@ directory. The \fBconnect()\fR function may fail if: .sp .ne 2 -.mk .na \fB\fBEACCES\fR\fR .ad .RS 16n -.rt Search permission is denied for a component of the path prefix; or write access to the named socket is denied. .RE .sp .ne 2 -.mk .na \fB\fBEADDRINUSE\fR\fR .ad .RS 16n -.rt Attempt to establish a connection that uses addresses that are already in use. .RE .sp .ne 2 -.mk .na \fB\fBECONNRESET\fR\fR .ad .RS 16n -.rt Remote host reset the connection request. .RE .sp .ne 2 -.mk .na \fB\fBEHOSTUNREACH\fR\fR .ad .RS 16n -.rt The destination host cannot be reached (probably because the host is down or a remote router cannot reach it). .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 16n -.rt The \fIaddress_len\fR argument is not a valid length for the address family; or invalid address family in sockaddr structure. .RE .sp .ne 2 -.mk .na \fB\fBENAMETOOLONG\fR\fR .ad .RS 16n -.rt Pathname resolution of a symbolic link produced an intermediate result whose length exceeds \fIPATH_MAX\fR. .RE .sp .ne 2 -.mk .na \fB\fBENETDOWN\fR\fR .ad .RS 16n -.rt The local interface used to reach the destination is down. .RE .sp .ne 2 -.mk .na \fB\fBENOBUFS\fR\fR .ad .RS 16n -.rt No buffer space is available. .RE .sp .ne 2 -.mk .na \fB\fBENOSR\fR\fR .ad .RS 16n -.rt There were insufficient STREAMS resources available to complete the operation. .RE .sp .ne 2 -.mk .na \fB\fBEOPNOTSUPP\fR\fR .ad .RS 16n -.rt The socket is listening and can not be connected. .RE @@ -457,15 +395,14 @@ See \fBattributes\fR(5) for descriptions of the following attributes: .sp .TS -tab() box; -cw(2.75i) |cw(2.75i) -lw(2.75i) |lw(2.75i) -. -ATTRIBUTE TYPEATTRIBUTE VALUE +box; +c | c +l | l . +ATTRIBUTE TYPE ATTRIBUTE VALUE _ -Interface StabilityStandard +Interface Stability Standard _ -MT-LevelMT-Safe +MT-Level MT-Safe .TE .SH SEE ALSO |