BIO_new_bio_dgram_pair

Create a connected pair of in-memory datagram BIOs.

Synopsis

Declared in <openssl/bio.h>

int
BIO_new_bio_dgram_pair(
    BIO** bio1,
    size_t writebuf1,
    BIO** bio2,
    size_t writebuf2);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
bio1Receives the first BIO of the pair.
writebuf1Write-buffer size for bio1 (0 selects a default).
bio2Receives the second BIO of the pair.
writebuf2Write-buffer size for bio2 (0 selects a default).