Connect socket sock to addr, applying BIO_SOCK_* options.

Synopsis

Declared in <openssl/bio.h>

int
BIO_connect(
    int sock,
    BIO_ADDR const* addr,
    int options);

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

sock

Socket file descriptor.

addr

Destination address.

options

Bitmask of BIO_SOCK_* flags (for example BIO_SOCK_NONBLOCK).

Created with MrDocs