Query socket metadata into a BIO_sock_info_u union.
Declared in <openssl/bio.h>
int
BIO_sock_info(
int sock,
BIO_sock_info_type type,
BIO_sock_info_u* info);
1 on success, or 0 on error.
| 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*. |