[#BIO_socket_nbio]
= BIO&lowbar;socket&lowbar;nbio
:mrdocs:

Set or clear non&hyphen;blocking mode on a socket file descriptor&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BIO&lowbar;socket&lowbar;nbio(
    int fd,
    int mode);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *fd*
| Socket descriptor to configure&period;
| *mode*
| Non&hyphen;zero to enable non&hyphen;blocking I&sol;O&semi; 0 to disable&period;
|===


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