Home
last modified time | relevance | path

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

/NetX-Duo-v6.3.0/samples/
Ddemo_netx_duo_tcp.c25 NX_TCP_SOCKET server_socket; variable
41 void thread_1_connect_received(NX_TCP_SOCKET *server_socket, UINT port);
42 void thread_1_disconnect_received(NX_TCP_SOCKET *server_socket);
386 status = nx_tcp_socket_create(&ip_1, &server_socket, "Server Socket", in thread_1_entry()
397 status = nx_tcp_server_socket_listen(&ip_1, 12, &server_socket, 5, thread_1_connect_received); in thread_1_entry()
413 status = nx_tcp_server_socket_accept(&server_socket, NX_WAIT_FOREVER); in thread_1_entry()
422 status = nx_tcp_socket_receive(&server_socket, &packet_ptr, NX_IP_PERIODIC_RATE); in thread_1_entry()
436 status = nx_tcp_socket_disconnect(&server_socket, NX_IP_PERIODIC_RATE); in thread_1_entry()
445 status = nx_tcp_server_socket_unaccept(&server_socket); in thread_1_entry()
454 status = nx_tcp_server_socket_relisten(&ip_1, 12, &server_socket); in thread_1_entry()
[all …]
Ddemo_netx_duo_multihome_tcp.c82 NX_TCP_SOCKET server_socket; variable
97 void thread_1_connect_received(NX_TCP_SOCKET *server_socket, UINT port);
98 void thread_1_disconnect_received(NX_TCP_SOCKET *server_socket);
612 status = nx_tcp_socket_create(&ip_1, &server_socket, "Server Socket", in thread_1_entry()
623 status = nx_tcp_server_socket_listen(&ip_1, 12, &server_socket, 5, thread_1_connect_received); in thread_1_entry()
639 status = nx_tcp_server_socket_accept(&server_socket, NX_WAIT_FOREVER); in thread_1_entry()
648 status = nx_tcp_socket_receive(&server_socket, &packet_ptr, NX_IP_PERIODIC_RATE); in thread_1_entry()
662 status = nx_tcp_socket_disconnect(&server_socket, NX_IP_PERIODIC_RATE); in thread_1_entry()
671 status = nx_tcp_server_socket_unaccept(&server_socket); in thread_1_entry()
680 status = nx_tcp_server_socket_relisten(&ip_1, 12, &server_socket); in thread_1_entry()
[all …]