BIO_ADDR_rawmake

Populate a BIO_ADDR from a raw address family, bytes, and port.

Synopsis

Declared in <openssl/bio.h>

int
BIO_ADDR_rawmake(
    BIO_ADDR* ap,
    int family,
    void const* where,
    size_t wherelen,
    unsigned short port);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
apDestination address object (must already be allocated).
familyAddress family such as AF_INET or AF_INET6.
whereNetwork-order address bytes (for example in_addr / in6_addr).
wherelenLength of where in bytes.
portPort number in host byte order.