[#BIO_sock_error]
= BIO&lowbar;sock&lowbar;error
:mrdocs:

Return the pending socket error for `sock` (clears SO&lowbar;ERROR)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BIO&lowbar;sock&lowbar;error(int sock);
----

== Return Value

Pending errno&hyphen;style error code, or 0 if none&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sock*
| Socket file descriptor&period;
|===


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