Home
last modified time | relevance | path

Searched refs:bind_ctx (Results 1 – 2 of 2) sorted by relevance

/mbedtls-3.7.0/library/
Dnet_sockets.c317 int mbedtls_net_accept(mbedtls_net_context *bind_ctx, in mbedtls_net_accept() argument
337 if (getsockopt(bind_ctx->fd, SOL_SOCKET, SO_TYPE, in mbedtls_net_accept()
345 ret = client_ctx->fd = (int) accept(bind_ctx->fd, in mbedtls_net_accept()
351 ret = (int) recvfrom(bind_ctx->fd, buf, sizeof(buf), MSG_PEEK, in mbedtls_net_accept()
364 if (net_would_block(bind_ctx) != 0) { in mbedtls_net_accept()
377 if (connect(bind_ctx->fd, (struct sockaddr *) &client_addr, n) != 0) { in mbedtls_net_accept()
381 client_ctx->fd = bind_ctx->fd; in mbedtls_net_accept()
382 bind_ctx->fd = -1; /* In case we exit early */ in mbedtls_net_accept()
387 (bind_ctx->fd = (int) socket(local_addr.ss_family, in mbedtls_net_accept()
389 setsockopt(bind_ctx->fd, SOL_SOCKET, SO_REUSEADDR, in mbedtls_net_accept()
[all …]
/mbedtls-3.7.0/include/mbedtls/
Dnet_sockets.h157 int mbedtls_net_accept(mbedtls_net_context *bind_ctx,