Searched refs:bind_ctx (Results 1 – 2 of 2) sorted by relevance
/net-tools-3.6.0/mbedtls-2.4.0/library/ |
D | net_sockets.c | 295 int mbedtls_net_accept( mbedtls_net_context *bind_ctx, in mbedtls_net_accept() argument 314 if( getsockopt( bind_ctx->fd, SOL_SOCKET, SO_TYPE, in mbedtls_net_accept() 324 ret = client_ctx->fd = (int) accept( bind_ctx->fd, in mbedtls_net_accept() 332 ret = (int) recvfrom( bind_ctx->fd, buf, sizeof( buf ), MSG_PEEK, in mbedtls_net_accept() 347 if( net_would_block( bind_ctx ) != 0 ) in mbedtls_net_accept() 360 if( connect( bind_ctx->fd, (struct sockaddr *) &client_addr, n ) != 0 ) in mbedtls_net_accept() 363 client_ctx->fd = bind_ctx->fd; in mbedtls_net_accept() 364 bind_ctx->fd = -1; /* In case we exit early */ in mbedtls_net_accept() 369 ( bind_ctx->fd = (int) socket( local_addr.ss_family, in mbedtls_net_accept() 371 setsockopt( bind_ctx->fd, SOL_SOCKET, SO_REUSEADDR, in mbedtls_net_accept() [all …]
|
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/ |
D | net_sockets.h | 130 int mbedtls_net_accept( mbedtls_net_context *bind_ctx,
|