[#BIO_new_bio_dgram_pair]
= BIO&lowbar;new&lowbar;bio&lowbar;dgram&lowbar;pair
:mrdocs:

Create a connected pair of in&hyphen;memory datagram BIOs&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BIO&lowbar;new&lowbar;bio&lowbar;dgram&lowbar;pair(
    xref:BIO.adoc[BIO]** bio1,
    size&lowbar;t writebuf1,
    xref:BIO.adoc[BIO]** bio2,
    size&lowbar;t writebuf2);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bio1*
| Receives the first BIO of the pair&period;
| *writebuf1*
| Write&hyphen;buffer size for `bio1` (0 selects a default)&period;
| *bio2*
| Receives the second BIO of the pair&period;
| *writebuf2*
| Write&hyphen;buffer size for `bio2` (0 selects a default)&period;
|===


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