Bind and listen on a socket using addr and BIO_SOCK_* options.
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| sock | Socket file descriptor to put into listening state. |
| addr | Local address to bind (may be NULL for an already-bound socket). |
| options | BIO_SOCK_* flags such as BIO_SOCK_REUSEADDR. |