BIO_ADDRINFO_protocol

Return the protocol number from an address-info element (for example IPPROTO_TCP).

Synopsis

Declared in <openssl/bio.h>

int
BIO_ADDRINFO_protocol(BIO_ADDRINFO const* bai);

Return Value

Protocol constant suitable for socket(), or 0 if unspecified.

Parameters

NameDescription
baiAddress-info node from BIO_lookup_ex() / BIO_ADDRINFO_next().