summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/BIO_s_connect.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/man/BIO_s_connect.3')
-rw-r--r--src/lib/libcrypto/man/BIO_s_connect.324
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/libcrypto/man/BIO_s_connect.3 b/src/lib/libcrypto/man/BIO_s_connect.3
index e0da157e12..cc2790fca6 100644
--- a/src/lib/libcrypto/man/BIO_s_connect.3
+++ b/src/lib/libcrypto/man/BIO_s_connect.3
@@ -1,6 +1,6 @@
1.\" $OpenBSD: BIO_s_connect.3,v 1.2 2016/11/06 15:52:50 jmc Exp $ 1.\" $OpenBSD: BIO_s_connect.3,v 1.3 2016/11/07 15:52:47 jmc Exp $
2.\" 2.\"
3.Dd $Mdocdate: November 6 2016 $ 3.Dd $Mdocdate: November 7 2016 $
4.Dt BIO_S_CONNECT 3 4.Dt BIO_S_CONNECT 3
5.Os 5.Os
6.Sh NAME 6.Sh NAME
@@ -106,8 +106,8 @@ into a state where it can connect to the same host again.
106places the underlying socket in 106places the underlying socket in
107.Fa c 107.Fa c
108if it is not 108if it is not
109.Dv NULL , 109.Dv NULL
110it also returns the socket. 110and also returns the socket.
111If 111If
112.Fa c 112.Fa c
113is not 113is not
@@ -151,7 +151,7 @@ and
151.Fn BIO_set_conn_ip 151.Fn BIO_set_conn_ip
152sets the IP address to 152sets the IP address to
153.Fa ip 153.Fa ip
154using binary form, that is four bytes specifying the IP address 154using binary form i.e. four bytes specifying the IP address
155in big-endian form. 155in big-endian form.
156.Pp 156.Pp
157.Fn BIO_set_conn_int_port 157.Fn BIO_set_conn_int_port
@@ -179,19 +179,19 @@ returns the port as an
179.Vt int . 179.Vt int .
180.Pp 180.Pp
181.Fn BIO_set_nbio 181.Fn BIO_set_nbio
182sets the non blocking I/O flag to 182sets the non-blocking I/O flag to
183.Fa n . 183.Fa n .
184If 184If
185.Fa n 185.Fa n
186is zero then blocking I/O is set. 186is zero then blocking I/O is set.
187If 187If
188.Fa n 188.Fa n
189is 1 then non blocking I/O is set. 189is 1 then non-blocking I/O is set.
190Blocking I/O is the default. 190Blocking I/O is the default.
191The call to 191The call to
192.Fn BIO_set_nbio 192.Fn BIO_set_nbio
193should be made before the connection is established 193should be made before the connection is established
194because non blocking I/O is set during the connect process. 194because non-blocking I/O is set during the connect process.
195.Pp 195.Pp
196.Fn BIO_new_connect 196.Fn BIO_new_connect
197combines 197combines
@@ -209,10 +209,10 @@ A zero or negative value is returned if the connection
209could not be established. 209could not be established.
210The call 210The call
211.Xr BIO_should_retry 3 211.Xr BIO_should_retry 3
212should be used for non blocking connect BIOs 212should be used for non-blocking connect BIOs
213to determine if the call should be retried. 213to determine if the call should be retried.
214.Sh NOTES 214.Pp
215If blocking I/O is set then a non positive return value from any 215If blocking I/O is set then a non-positive return value from any
216I/O call is caused by an error condition, although a zero return 216I/O call is caused by an error condition, although a zero return
217will normally mean that the connection was closed. 217will normally mean that the connection was closed.
218.Pp 218.Pp
@@ -244,7 +244,7 @@ from other I/O processing.
244If non-blocking I/O is set, 244If non-blocking I/O is set,
245then retries will be requested as appropriate. 245then retries will be requested as appropriate.
246.Pp 246.Pp
247It addition to 247In addition to
248.Xr BIO_should_read 3 248.Xr BIO_should_read 3
249and 249and
250.Xr BIO_should_write 3 250.Xr BIO_should_write 3