home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.protocols.tcp-ip
- Path: sparky!uunet!panther!panther3.panther.mot.com!ronf
- From: ronf@panther3.panther.mot.com (Ron Feigen)
- Subject: Re: TCP connect
- Message-ID: <1992Nov5.154116.5097@panther.mot.com>
- Sender: usenet@panther.mot.com
- Nntp-Posting-Host: panther3.panther.mot.com
- Organization: Motorola Panther Project, Chandler, AZ
- References: <Bx66Jn.D6@ushiva.wariat.org>
- Distribution: usa
- Date: Thu, 5 Nov 1992 15:41:16 GMT
- Lines: 25
-
- In article <Bx66Jn.D6@ushiva.wariat.org> raw@ushiva.wariat.org (Roland Wilcher) writes:
- >
- >Some time ago there was a question about checking for a TCP connect
- >to a possibly non functioning machine without the long wait.
- >An answer was posted using connect with nonblocking mode. I don't
- >have that article now but would appreciate any pointers . Target
- >system would be Esix SVR4 using the socket libraries and TCP/IP.
- >
- >--
- >Lack of skill dictates economy of style. raw@ushiva.ncoast.org
- >- Joey Ramone raw@ushiva.wariat.org
- >Roland A. Wilcher 6207 Luther Ave. Cleve Oh. 44103
- >---------------------------------------------------------------------------
-
- If the TCP socket is non-blocking the file descriptor will be ready for writing
- when the connection is complete. There are several ways to check to see if the
- socket is ready for writing, select() is one of them. Don't forget to check the
- errno after connect(). You are expecting EINPROGRESS, but you need to be
- prepared to handle other errors.
-
- --
-
- >
- Ron Feigen
- ronf@panther.mot.com
-