Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/lib/libc/sys Pull up 1.14: Explain how to get status in...
details: https://anonhg.NetBSD.org/src/rev/51a3771eb810
branches: netbsd-1-4
changeset: 469255:51a3771eb810
user: he <he%NetBSD.org@localhost>
date: Sun Aug 22 16:53:01 1999 +0000
description:
Pull up 1.14: Explain how to get status information for non-blocking
connects, fixing PR8208. From sommerfeld.
diffstat:
lib/libc/sys/connect.2 | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r 423b53a65901 -r 51a3771eb810 lib/libc/sys/connect.2
--- a/lib/libc/sys/connect.2 Sun Aug 22 16:33:48 1999 +0000
+++ b/lib/libc/sys/connect.2 Sun Aug 22 16:53:01 1999 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: connect.2,v 1.13 1999/03/22 19:45:02 garbled Exp $
+.\" $NetBSD: connect.2,v 1.13.2.1 1999/08/22 16:53:01 he Exp $
.\"
.\" Copyright (c) 1983, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -113,7 +113,15 @@
.Xr select 2
or
.Xr poll 2
-for completion by selecting or polling the socket for writing.
+for completion by selecting or polling the socket for writing. The success or
+failure of the connect operation may be determined by using
+.Xr getsockopt 2
+to read the socket error status with the
+.Dv SO_ERROR
+option at the
+.Dv SOL_SOCKET
+level. The returned socket error status is zero on success, or one of the
+error codes listed here on failure.
.It Bq Er EALREADY
The socket is non-blocking
and a previous connection attempt
@@ -149,7 +157,8 @@
.Xr poll 2 ,
.Xr select 2 ,
.Xr socket 2 ,
-.Xr getsockname 2
+.Xr getsockname 2 ,
+.Xr getsockopt 2
.Sh HISTORY
The
.Fn connect
Home |
Main Index |
Thread Index |
Old Index