[#BIO_socket_ioctl]
= BIO&lowbar;socket&lowbar;ioctl
:mrdocs:

Perform an ioctl on a socket descriptor with BIO error reporting&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BIO&lowbar;socket&lowbar;ioctl(
    int fd,
    long type,
    void* arg);
----

== Return Value

0 on success, or &hyphen;1 on error (OpenSSL error stack updated)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *fd*
| Socket file descriptor&period;
| *type*
| ioctl request code&period;
| *arg*
| Request&hyphen;specific argument pointer&period;
|===


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