mbedtls_net_accept() function
Accept a connection from a remote client
Arguments
client_ctx
Will contain the connected client socket
client_ip
Will contain the client IP address, can be NULL
buf_size
Size of the client_ip buffer
cip_len
Will receive the size of the client IP written, can be NULL if client_ip is null
Return value
0 if successful, or MBEDTLS_ERR_NET_SOCKET_FAILED, MBEDTLS_ERR_NET_BIND_FAILED, MBEDTLS_ERR_NET_ACCEPT_FAILED, or MBEDTLS_ERR_NET_BUFFER_TOO_SMALL if buf_size is too small, MBEDTLS_ERR_SSL_WANT_READ if bind_fd was set to non-blocking and accept() would block.
mbedtls_net_accept() calls 9 functions:
![]()
mbedtls_net_accept()
mbedtls_net_accept() reads 7 variables and writes 1 variable:
![]()
mbedtls_net_accept()