[#BIO_new_dgram] = BIO_new_dgram :mrdocs: Create a datagram (UDP‐style) BIO wrapping an existing socket descriptor. == Synopsis Declared in `<openssl/bio.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BIO.adoc[BIO]* BIO_new_dgram( int fd, int close_flag); ---- == Return Value Newly allocated datagram BIO, or NULL on failure. == Parameters [cols="1,4"] |=== | Name| Description | *fd* | Socket file descriptor to wrap. | *close_flag* | BIO_CLOSE to close `fd` on BIO_free(), or BIO_NOCLOSE. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#