Query socket metadata into a BIO_sock_info_u union.

Synopsis

Declared in <openssl/bio.h>

int
BIO_sock_info(
    int sock,
    BIO_sock_info_type type,
    BIO_sock_info_u* info);

Return Value

1 on success, or 0 on error.

Parameters

Name

Description

sock

Connected or bound socket descriptor.

type

Information type to retrieve (for example BIO_SOCK_INFO_ADDRESS).

info

Output union; for BIO_SOCK_INFO_ADDRESS, info‐>addr receives a BIO_ADDR*.

Created with MrDocs