Home
last modified time | relevance | path

Searched refs:sntp_client (Results 1 – 9 of 9) sorted by relevance

/NetX-Duo-v6.4.1/test/regression/sntp_test/
Dnetx_sntp_client_unicast_basic_test.c43 static NX_SNTP_CLIENT sntp_client; variable
123 (ULONG)(&sntp_client), free_memory_pointer, 2048, in test_application_define()
135 status = nx_sntp_client_create(&sntp_client, &client_ip, iface_index, &client_packet_pool, in test_application_define()
167 status = nx_sntp_client_delete(&sntp_client); in sntp_client_thread_entry()
174 status = nx_sntp_client_create(&sntp_client, &client_ip, iface_index, &client_packet_pool, in sntp_client_thread_entry()
187 status = nx_sntp_client_initialize_unicast(&sntp_client, SERVER_IP_ADDRESS); in sntp_client_thread_entry()
198 status = nx_sntp_client_set_local_time(&sntp_client, base_seconds, base_fraction); in sntp_client_thread_entry()
204 status = nx_sntp_client_run_unicast(&sntp_client); in sntp_client_thread_entry()
218 status = nx_sntp_client_receiving_updates(&sntp_client, &server_status); in sntp_client_thread_entry()
226 status = nx_sntp_client_get_local_time(&sntp_client, &seconds, &fraction, &buffer[0]); in sntp_client_thread_entry()
[all …]
Dnetx_sntp_client_packet_chain_test.c44 static NX_SNTP_CLIENT sntp_client; variable
124 (ULONG)(&sntp_client), free_memory_pointer, 2048, in test_application_define()
136 status = nx_sntp_client_create(&sntp_client, &client_ip, iface_index, &client_packet_pool, in test_application_define()
169 status = nx_sntp_client_delete(&sntp_client); in sntp_client_thread_entry()
176 status = nx_sntp_client_create(&sntp_client, &client_ip, iface_index, &client_packet_pool, in sntp_client_thread_entry()
189 status = nx_sntp_client_initialize_unicast(&sntp_client, SERVER_IP_ADDRESS); in sntp_client_thread_entry()
200 status = nx_sntp_client_set_local_time(&sntp_client, base_seconds, base_fraction); in sntp_client_thread_entry()
206 status = nx_sntp_client_run_unicast(&sntp_client); in sntp_client_thread_entry()
220 status = nx_sntp_client_receiving_updates(&sntp_client, &server_status); in sntp_client_thread_entry()
228 status = nx_sntp_client_get_local_time(&sntp_client, &seconds, &fraction, &buffer[0]); in sntp_client_thread_entry()
[all …]
Dnetx_sntp_client_broadcast_basic_test.c44 static NX_SNTP_CLIENT sntp_client; variable
124 (ULONG)(&sntp_client), free_memory_pointer, 2048, in test_application_define()
136 status = nx_sntp_client_create(&sntp_client, &client_ip, iface_index, &client_packet_pool, in test_application_define()
171 status = nx_sntp_client_initialize_broadcast(&sntp_client, NX_NULL, SERVER_IP_ADDRESS); in sntp_client_thread_entry()
182 status = nx_sntp_client_set_local_time(&sntp_client, base_seconds, base_fraction); in sntp_client_thread_entry()
188 status = nx_sntp_client_run_broadcast(&sntp_client); in sntp_client_thread_entry()
202 status = nx_sntp_client_receiving_updates(&sntp_client, &server_status); in sntp_client_thread_entry()
210 …status = nx_sntp_client_get_local_time_extended(&sntp_client, &seconds, &fraction, &buffer[0], siz… in sntp_client_thread_entry()
233 status = nx_sntp_client_get_local_time(&sntp_client, &seconds, &fraction, &buffer[0]); in sntp_client_thread_entry()
264 status = nx_sntp_client_stop(&sntp_client); in sntp_client_thread_entry()
[all …]
Dnetx_sntp_client_unicast_display_date_test.c59 static NX_SNTP_CLIENT sntp_client; variable
139 (ULONG)(&sntp_client), free_memory_pointer, 2048, in test_application_define()
151 status = nx_sntp_client_create(&sntp_client, &client_ip, iface_index, &client_packet_pool, in test_application_define()
207 status = nx_sntp_client_initialize_unicast(&sntp_client, SERVER_IP_ADDRESS); in sntp_client_thread_entry()
219 status = nx_sntp_client_set_local_time(&sntp_client, base_seconds, base_fraction); in sntp_client_thread_entry()
225 status = nx_sntp_client_run_unicast(&sntp_client); in sntp_client_thread_entry()
236 status = nx_sntp_client_receiving_updates(&sntp_client, &server_status); in sntp_client_thread_entry()
244 … status = nx_sntp_client_get_local_time(&sntp_client, &seconds, &milliseconds, &buffer[0]); in sntp_client_thread_entry()
249 … status = nx_sntp_client_utility_display_date_time(&sntp_client, &buffer[0], BUFSIZE); in sntp_client_thread_entry()
290 status = nx_sntp_client_stop(&sntp_client); in sntp_client_thread_entry()
[all …]
Dnetx_sntp_request_unicast_test.c109 static NX_SNTP_CLIENT sntp_client; variable
201 (ULONG)(&sntp_client), free_memory_pointer, 2048, in test_application_define()
213 status = nx_sntp_client_create(&sntp_client, &client_ip, iface_index, &client_packet_pool, in test_application_define()
254 status = nx_sntp_client_initialize_unicast(&sntp_client, SERVER_IP_ADDRESS); in sntp_client_thread_entry()
266 status = nx_sntp_client_set_local_time(&sntp_client, base_seconds, base_fraction); in sntp_client_thread_entry()
275 status = nx_sntp_client_run_unicast(&sntp_client); in sntp_client_thread_entry()
292 status = nx_sntp_client_receiving_updates(&sntp_client, &server_status); in sntp_client_thread_entry()
304 status = nx_sntp_client_request_unicast_time(&sntp_client, 500); in sntp_client_thread_entry()
311 status = nx_sntp_client_get_local_time(&sntp_client, &seconds, &fraction, &buffer[0]); in sntp_client_thread_entry()
334 nx_sntp_client_stop(&sntp_client); in sntp_client_thread_entry()
[all …]
Dnetx_sntp_client_ipv6_broadcast_basic_test.c45 static NX_SNTP_CLIENT sntp_client; variable
123 (ULONG)(&sntp_client), free_memory_pointer, 2048, in test_application_define()
135 status = nx_sntp_client_create(&sntp_client, &client_ip, iface_index, &client_packet_pool, in test_application_define()
201 status = nxd_sntp_client_initialize_broadcast(&sntp_client, &sntp_server_address, NX_NULL); in sntp_client_thread_entry()
212 status = nx_sntp_client_set_local_time(&sntp_client, base_seconds, base_fraction); in sntp_client_thread_entry()
218 status = nx_sntp_client_run_broadcast(&sntp_client); in sntp_client_thread_entry()
232 status = nx_sntp_client_receiving_updates(&sntp_client, &server_status); in sntp_client_thread_entry()
240 status = nx_sntp_client_get_local_time(&sntp_client, &seconds, &fraction, &buffer[0]); in sntp_client_thread_entry()
271 status = nx_sntp_client_stop(&sntp_client); in sntp_client_thread_entry()
276 status = nx_sntp_client_delete(&sntp_client); in sntp_client_thread_entry()
Dnetx_sntp_client_ipv6_unicast_basic_test.c45 static NX_SNTP_CLIENT sntp_client; variable
123 (ULONG)(&sntp_client), free_memory_pointer, 2048, in test_application_define()
135 status = nx_sntp_client_create(&sntp_client, &client_ip, iface_index, &client_packet_pool, in test_application_define()
202 status = nxd_sntp_client_initialize_unicast(&sntp_client, &sntp_server_address); in sntp_client_thread_entry()
213 status = nx_sntp_client_set_local_time(&sntp_client, base_seconds, base_fraction); in sntp_client_thread_entry()
219 status = nx_sntp_client_run_unicast(&sntp_client); in sntp_client_thread_entry()
233 status = nx_sntp_client_receiving_updates(&sntp_client, &server_status); in sntp_client_thread_entry()
241 status = nx_sntp_client_get_local_time(&sntp_client, &seconds, &fraction, &buffer[0]); in sntp_client_thread_entry()
272 status = nx_sntp_client_stop(&sntp_client); in sntp_client_thread_entry()
277 status = nx_sntp_client_delete(&sntp_client); in sntp_client_thread_entry()
Dnetx_sntp_client_kod_test.c39 static NX_SNTP_CLIENT sntp_client; variable
121 (ULONG)(&sntp_client), free_memory_pointer, 2048, in test_application_define()
133 status = nx_sntp_client_create(&sntp_client, &client_ip, iface_index, &client_packet_pool, in test_application_define()
172 status = nx_sntp_client_initialize_unicast(&sntp_client, SERVER_IP_ADDRESS); in sntp_client_thread_entry()
183 status = nx_sntp_client_set_local_time(&sntp_client, base_seconds, base_fraction); in sntp_client_thread_entry()
189 status = nx_sntp_client_run_unicast(&sntp_client); in sntp_client_thread_entry()
199 status = nx_sntp_client_stop(&sntp_client); in sntp_client_thread_entry()
204 status = nx_sntp_client_delete(&sntp_client); in sntp_client_thread_entry()
/NetX-Duo-v6.4.1/samples/
Dmain.c144 static NX_SNTP_CLIENT sntp_client; variable
517 status = nx_sntp_client_create(&sntp_client, &ip_0, 0, &pool_0, in sntp_time_sync_internal()
529 status = nx_sntp_client_initialize_unicast(&sntp_client, sntp_server_address); in sntp_time_sync_internal()
534 nx_sntp_client_delete(&sntp_client); in sntp_time_sync_internal()
539 status = nx_sntp_client_set_local_time(&sntp_client, 0, 0); in sntp_time_sync_internal()
544 nx_sntp_client_delete(&sntp_client); in sntp_time_sync_internal()
549 status = nx_sntp_client_run_unicast(&sntp_client); in sntp_time_sync_internal()
554 nx_sntp_client_stop(&sntp_client); in sntp_time_sync_internal()
555 nx_sntp_client_delete(&sntp_client); in sntp_time_sync_internal()
564 status = nx_sntp_client_receiving_updates(&sntp_client, &server_status); in sntp_time_sync_internal()
[all …]