Home
last modified time | relevance | path

Searched refs:client_fd (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/samples/net/mdns_responder/src/
Dservice.c37 int client_fd; in service() local
119 client_fd = r; in service()
126 r = welcome(client_fd); in service()
129 close(client_fd); in service()
135 r = recv(client_fd, line, sizeof(line), 0); in service()
138 close(client_fd); in service()
143 r = send(client_fd, line, len, 0); in service()
146 close(client_fd); in service()
/Zephyr-latest/tests/net/lib/http_server/crime/src/
Dmain.c66 int client_fd; in test_crime() local
78 client_fd = ret; in test_crime()
92 ret = zsock_connect(client_fd, (struct sockaddr *)&sa, sizeof(sa)); in test_crime()
101 ret = zsock_send(client_fd, http1_request, strlen(http1_request), 0); in test_crime()
105 recv_len = zsock_recv(client_fd, buf, sizeof(buf), 0); in test_crime()
111 ret = zsock_recv(client_fd, buf + recv_len, sizeof(buf) - recv_len, 0); in test_crime()
128 ret = zsock_close(client_fd); in test_crime()
/Zephyr-latest/tests/net/socket/tls_ext/src/
Dmain.c152 int client_fd; in server_thread_fn() local
169 client_fd = r; in server_thread_fn()
177 addrstr, ntohs(sa.sin_port), client_fd); in server_thread_fn()
180 r = recv(client_fd, addrstr, sizeof(addrstr), 0); in server_thread_fn()
185 r = send(client_fd, SECRET, SECRET_SIZE, 0); in server_thread_fn()
190 r = close(client_fd); in server_thread_fn()
200 int client_fd; in test_common() local
311 client_fd = r; in test_common()
344 r = setsockopt(client_fd, SOL_TLS, TLS_SEC_TAG_LIST, in test_common()
349 r = setsockopt(client_fd, SOL_TLS, TLS_HOSTNAME, "localhost", in test_common()
[all …]
/Zephyr-latest/tests/net/lib/http_server/tls/src/
Dmain.c130 int client_fd; in test_tls() local
153 client_fd = ret; in test_tls()
166 ret = zsock_setsockopt(client_fd, SOL_TLS, TLS_SEC_TAG_LIST, in test_tls()
170 ret = zsock_setsockopt(client_fd, SOL_TLS, TLS_HOSTNAME, "zephyr.local", in test_tls()
187 ret = zsock_connect(client_fd, (struct sockaddr *)&sa, sizeof(sa)); in test_tls()
190 ret = zsock_send(client_fd, http1_request, sizeof(http1_request) - 1, 0); in test_tls()
196 recv_len = zsock_recv(client_fd, buf, sizeof(buf), 0); in test_tls()
202 ret = zsock_recv(client_fd, buf + recv_len, sizeof(buf) - recv_len, 0); in test_tls()
219 ret = zsock_close(client_fd); in test_tls()
/Zephyr-latest/tests/net/lib/http_server/core/src/
Dmain.c532 static int client_fd = -1; variable
543 ret = zsock_recv(client_fd, buf + *offset, sizeof(buf) - *offset, 0); in test_read_data()
717 ret = zsock_send(client_fd, request_get_2_streams, in ZTEST()
747 ret = zsock_send(client_fd, request_get_static_simple, in ZTEST()
775 ret = zsock_send(client_fd, http1_request, strlen(http1_request), 0); in ZTEST()
809 ret = zsock_send(client_fd, http1_request, strlen(http1_request), 0); in ZTEST()
826 ret = zsock_send(client_fd, request, request_len, 0); in common_verify_http2_dynamic_post_request()
874 ret = zsock_send(client_fd, method, strlen(method), 0); in common_verify_http1_dynamic_upgrade_post()
877 ret = zsock_send(client_fd, http1_request, strlen(http1_request), 0); in common_verify_http1_dynamic_upgrade_post()
920 ret = zsock_send(client_fd, method, strlen(method), 0); in common_verify_http1_dynamic_post()
[all …]