Lines Matching refs:asock
218 void get_sock_info_address(int asock, char **hostname, char **service) in get_sock_info_address() argument
228 && BIO_sock_info(asock, BIO_SOCK_INFO_ADDRESS, &info)) { in get_sock_info_address()
237 int report_server_accept(BIO *out, int asock, int with_address, int with_pid) in report_server_accept() argument
246 get_sock_info_address(asock, &hostname, &service); in report_server_accept()
292 int asock = 0; in do_server() local
347 asock = BIO_socket(sock_family, sock_type, sock_protocol, 0); in do_server()
348 if (asock == INVALID_SOCKET && sock_family_fallback != AF_UNSPEC) { in do_server()
349 asock = BIO_socket(sock_family_fallback, sock_type, sock_protocol, 0); in do_server()
352 if (asock == INVALID_SOCKET in do_server()
353 || !BIO_listen(asock, sock_address, sock_options)) { in do_server()
356 if (asock != INVALID_SOCKET) in do_server()
357 BIO_closesocket(asock); in do_server()
369 BIO *tmpbio = BIO_new_dgram_sctp(asock, BIO_NOCLOSE); in do_server()
372 BIO_closesocket(asock); in do_server()
385 if (!report_server_accept(bio_s_out, asock, sock_port == 0, 0)) { in do_server()
386 BIO_closesocket(asock); in do_server()
392 *accept_sock = asock; in do_server()
402 BIO_closesocket(asock); in do_server()
407 sock = BIO_accept_ex(asock, ourpeer, 0); in do_server()
411 BIO_closesocket(asock); in do_server()
444 i = (*cb)(asock, type, protocol, context); in do_server()
450 BIO_closesocket(asock); in do_server()