[#BIO_closesocket]
= BIO&lowbar;closesocket
:mrdocs:

Close a socket descriptor with OpenSSL error reporting&period;

== Synopsis

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

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

== Return Value

1 on success, or 0 on failure&period;

== Parameters

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


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