mirror of https://github.com/mkerrisk/man-pages
connect.2: Note that a new socket should be used if connect() fails
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
bea08fec7e
commit
977e3384e5
|
@ -267,6 +267,12 @@ Some POSIX confusion resulted in the present
|
|||
also used by glibc.
|
||||
See also
|
||||
.BR accept (2).
|
||||
|
||||
If
|
||||
.B connect()
|
||||
fails, consider the state of the socket as unspecified.
|
||||
Portable applications should close the socket and create a new one for
|
||||
reconnecting.
|
||||
.SH EXAMPLE
|
||||
An example of the use of
|
||||
.BR connect ()
|
||||
|
|
Loading…
Reference in New Issue