[#BIO_ADDRINFO_protocol]
= BIO&lowbar;ADDRINFO&lowbar;protocol
:mrdocs:

Return the protocol number from an address&hyphen;info element (for example IPPROTO&lowbar;TCP)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BIO&lowbar;ADDRINFO&lowbar;protocol(xref:BIO_ADDRINFO.adoc[BIO&lowbar;ADDRINFO] const* bai);
----

== Return Value

Protocol constant suitable for socket(), or 0 if unspecified&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bai*
| Address&hyphen;info node from BIO&lowbar;lookup&lowbar;ex() &sol; BIO&lowbar;ADDRINFO&lowbar;next()&period;
|===


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