Accept a connection on a listening socket and return peer host:port text (deprecated).
Declared in <openssl/bio.h>
[[deprecated]]
int
BIO_accept(
int sock,
char** ip_port);
Deprecated. Use of this entity is allowed but discouraged.
Accepted socket fd on success, or -1 on error.
| Name | Description |
|---|---|
| sock | Listening socket fd from BIO_get_accept_socket(). |
| ip_port | Receives an allocated "host:port" string for the peer; free with OPENSSL_free(). |