/Zephyr-latest/samples/net/mdns_responder/src/ |
D | service.c | 37 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/ |
D | main.c | 66 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/ |
D | main.c | 152 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/ |
D | main.c | 130 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/ |
D | main.c | 532 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 …]
|