Home
last modified time | relevance | path

Searched refs:sntp_pcb (Results 1 - 1 of 1) sorted by relevance

/third_party/lwip/src/apps/sntp/
H A Dsntp.c227 static struct udp_pcb *sntp_pcb; variable
556 udp_sendto(sntp_pcb, p, server_addr, SNTP_PORT); in sntp_send_request()
667 if (sntp_pcb == NULL) { in sntp_init()
668 sntp_pcb = udp_new_ip_type(IPADDR_TYPE_ANY); in sntp_init()
669 LWIP_ASSERT("Failed to allocate udp pcb for sntp client", sntp_pcb != NULL); in sntp_init()
670 if (sntp_pcb != NULL) { in sntp_init()
671 udp_recv(sntp_pcb, sntp_recv, NULL); in sntp_init()
681 ip_set_option(sntp_pcb, SOF_BROADCAST); in sntp_init()
682 udp_bind(sntp_pcb, IP_ANY_TYPE, SNTP_PORT); in sntp_init()
696 if (sntp_pcb ! in sntp_stop()
[all...]

Completed in 2 milliseconds