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

Name

Description

ap

Destination address object (must already be allocated).

family

Address family such as AF_INET or AF_INET6.

where

Network‐order address bytes (for example in_addr / in6_addr).

wherelen

Length of where in bytes.

port

Port number in host byte order.

Created with MrDocs