Searched refs:server_fd (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/samples/net/mdns_responder/src/ |
D | service.c | 36 int server_fd; in service() local 82 server_fd = r; in service() 83 NET_DBG("server_fd is %d", server_fd); in service() 85 r = bind(server_fd, &server_addr, sizeof(server_addr)); in service() 88 close(server_fd); in service() 104 r = listen(server_fd, 1); in service() 107 close(server_fd); in service() 113 r = accept(server_fd, (struct sockaddr *)&client_addr, &len); in service()
|
/Zephyr-latest/tests/net/socket/tls_ext/src/ |
D | main.c | 149 const int server_fd = POINTER_TO_INT(arg0); in server_thread_fn() local 167 r = accept(server_fd, (struct sockaddr *)&sa, &addrlen); in server_thread_fn() 199 int server_fd; in test_common() local 220 server_fd = r; in test_common() 222 r = setsockopt(server_fd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes)); in test_common() 250 r = setsockopt(server_fd, SOL_TLS, TLS_PEER_VERIFY, in test_common() 262 r = setsockopt(server_fd, SOL_TLS, TLS_SEC_TAG_LIST, in test_common() 267 r = setsockopt(server_fd, SOL_TLS, TLS_HOSTNAME, "localhost", in test_common() 279 r = bind(server_fd, (struct sockaddr *)&sa, sizeof(sa)); in test_common() 282 r = listen(server_fd, 1); in test_common() [all …]
|
/Zephyr-latest/subsys/net/lib/http/ |
D | http_server_core.c | 258 static int accept_new_client(int server_fd) in accept_new_client() argument 267 new_socket = zsock_accept(server_fd, (struct sockaddr *)&sa, &addrlen); in accept_new_client() 270 LOG_DBG("[%d] accept failed (%d)", server_fd, new_socket); in accept_new_client()
|