Home
last modified time | relevance | path

Searched refs:sockfd (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/samples/net/sockets/coap_download/src/
Dmain.c55 int sockfd; in do_coap_download() local
68 sockfd = zsock_socket(sa->sa_family, SOCK_DGRAM, 0); in do_coap_download()
69 if (sockfd < 0) { in do_coap_download()
76 ret = coap_client_req(&client, sockfd, sa, &request, NULL); in do_coap_download()
85 zsock_close(sockfd); in do_coap_download()
/Zephyr-latest/drivers/modem/
Dsimcom-sim7080.c304 static int sockread_common(int sockfd, struct modem_cmd_handler_data *data, int socket_data_length, in sockread_common() argument
331 sock = modem_socket_from_fd(&mdata.socket_config, sockfd); in sockread_common()
333 LOG_ERR("Socket not found! (%d)", sockfd); in sockread_common()
340 LOG_ERR("Socket data not found! (%d)", sockfd); in sockread_common()
902 int sockfd, state; in MODEM_CMD_DEFINE() local
904 sockfd = atoi(argv[0]); in MODEM_CMD_DEFINE()
907 sock = modem_socket_from_fd(&mdata.socket_config, sockfd); in MODEM_CMD_DEFINE()
917 LOG_INF("Socket close indication for socket: %d", sockfd); in MODEM_CMD_DEFINE()
920 LOG_INF("Socket closed: %d", sockfd); in MODEM_CMD_DEFINE()