[#BIO_connect]
= BIO&lowbar;connect
:mrdocs:

Connect socket `sock` to `addr,` applying BIO&lowbar;SOCK&lowbar;&ast; `options&period;`

== Synopsis

Declared in `&lt;openssl&sol;bio&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BIO&lowbar;connect(
    int sock,
    xref:BIO_ADDR.adoc[BIO&lowbar;ADDR] const* addr,
    int options);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sock*
| Socket file descriptor&period;
| *addr*
| Destination address&period;
| *options*
| Bitmask of BIO&lowbar;SOCK&lowbar;&ast; flags (for example BIO&lowbar;SOCK&lowbar;NONBLOCK)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
