170
171
* can be NULL if client_ip is null
172
173
* \return 0 if successful, or
173
176
* MBEDTLS_ERR_NET_ACCEPT_FAILED, or
174
177
* MBEDTLS_ERR_NET_BUFFER_TOO_SMALL if buf_size is too small,
175
178
* MBEDTLS_ERR_SSL_WANT_READ if bind_fd was set to