Accept a connection on a listening socket and return peer host:port text (deprecated).

Synopsis

Declared in <openssl/bio.h>

[[deprecated]]
int
BIO_accept(
    int sock,
    char** ip_port);
Warning

Deprecated. Use of this entity is allowed but discouraged.

Return Value

Accepted socket fd on success, or ‐1 on error.

Parameters

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().

Created with MrDocs