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

Name

Description

bio1

Receives the first BIO of the pair.

writebuf1

Write‐buffer size for bio1 (0 selects a default).

bio2

Receives the second BIO of the pair.

writebuf2

Write‐buffer size for bio2 (0 selects a default).

Created with MrDocs