/NetX-Duo-v6.4.1/test/regression/ftp_test/ |
D | netx_ftp_pasv_stor_test.c | 29 static NX_FTP_CLIENT ftp_client; variable 190 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 195 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 200 status = nx_ftp_client_passive_mode_set(&ftp_client, NX_TRUE); in client_thread_entry() 211 …status = nx_tcp_socket_send(&(ftp_client.nx_ftp_client_control_socket), my_packet, NX_IP_PERIODIC_… in client_thread_entry() 218 …status = nx_tcp_socket_receive(&(ftp_client.nx_ftp_client_control_socket), &recv_packet_ptr, NX_IP… in client_thread_entry() 238 …status = nx_tcp_socket_send(&(ftp_client.nx_ftp_client_control_socket), my_packet, NX_IP_PERIODIC_… in client_thread_entry() 245 …status = nx_tcp_socket_receive(&(ftp_client.nx_ftp_client_control_socket), &recv_packet_ptr, NX_IP… in client_thread_entry() 261 ftp_client.nx_ftp_client_data_socket.nx_tcp_socket_connect_ip.nxd_ip_version = NX_IP_VERSION_V4; in client_thread_entry() 262 …ftp_client.nx_ftp_client_data_socket.nx_tcp_socket_connect_ip.nxd_ip_address.v4 = FTP_SERVER_ADDRE… in client_thread_entry() [all …]
|
D | netx_ftp_pasv_twice_test.c | 24 static NX_FTP_CLIENT ftp_client; variable 182 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 187 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 192 status = nx_ftp_client_passive_mode_set(&ftp_client, NX_TRUE); in client_thread_entry() 200 _nx_ftp_client_passive_transfer_setup(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 201 nx_tcp_socket_disconnect(&(ftp_client.nx_ftp_client_data_socket), NX_NO_WAIT); in client_thread_entry() 202 nx_tcp_client_socket_unbind(&(ftp_client.nx_ftp_client_data_socket)); in client_thread_entry() 205 status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_WRITE, 100); in client_thread_entry() 228 status = nx_ftp_client_file_write(&ftp_client, my_packet, 500); in client_thread_entry() 238 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() [all …]
|
D | netx_ftp_data_connection_test.c | 26 static NX_FTP_CLIENT ftp_client; variable 186 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 191 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 196 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERIODIC_R… in client_thread_entry() 213 status = nx_ftp_client_file_write(&ftp_client, my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() 218 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 223 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_READ, NX_IP_PERIODIC_RA… in client_thread_entry() 228 status = nx_ftp_client_file_read(&ftp_client, &my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() 237 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 241 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_READ, NX_IP_PERIODIC_RA… in client_thread_entry() [all …]
|
D | netx_ftp_service_commands_nlist_test.c | 26 static NX_FTP_CLIENT ftp_client; variable 189 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 194 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 198 status = nx_ftp_client_directory_create(&ftp_client,"/abc",NX_IP_PERIODIC_RATE/2); in client_thread_entry() 202 status = nx_ftp_client_directory_create(&ftp_client,"def",NX_IP_PERIODIC_RATE/2); in client_thread_entry() 207 …status = nx_ftp_client_file_open(&ftp_client, "test1.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERIODIC_… in client_thread_entry() 212 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 217 …status = nx_ftp_client_file_open(&ftp_client, "/abc/test2.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERI… in client_thread_entry() 222 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 226 status = nx_ftp_client_directory_create(&ftp_client,"cpp",NX_IP_PERIODIC_RATE/2); in client_thread_entry() [all …]
|
D | netx_ftp_access_control_commands_03_test.c | 26 static NX_FTP_CLIENT ftp_client; variable 192 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 199 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 205 control_port = ftp_client.nx_ftp_client_control_socket.nx_tcp_socket_port; in client_thread_entry() 222 …status = nx_tcp_socket_send(&(ftp_client.nx_ftp_client_control_socket), my_packet, NX_IP_PERIODIC… in client_thread_entry() 226 …status = nx_tcp_socket_receive(&(ftp_client.nx_ftp_client_control_socket), &my_packet, NX_IP_PERI… in client_thread_entry() 250 …status = nx_tcp_socket_send(&(ftp_client.nx_ftp_client_control_socket), my_packet, NX_IP_PERIODIC… in client_thread_entry() 255 if(ftp_client.nx_ftp_client_control_socket.nx_tcp_socket_port != control_port) in client_thread_entry() 265 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERIODIC_R… in client_thread_entry() 282 status = nx_ftp_client_file_write(&ftp_client, data_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() [all …]
|
D | netx_ftp_establish_data_connection_03_test.c | 26 static NX_FTP_CLIENT ftp_client; variable 188 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 193 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 197 data_port_default = ftp_client.nx_ftp_client_data_port; in client_thread_entry() 200 if (ftp_client.nx_ftp_client_data_port >= NX_MAX_PORT) in client_thread_entry() 203 status = nx_tcp_free_port_find(ftp_client.nx_ftp_client_ip_ptr, in client_thread_entry() 204 … ftp_client.nx_ftp_client_control_socket.nx_tcp_socket_port, &data_port); in client_thread_entry() 206 if (data_port <= ftp_client.nx_ftp_client_control_socket.nx_tcp_socket_port) in client_thread_entry() 216 status = nx_tcp_free_port_find(ftp_client.nx_ftp_client_ip_ptr, in client_thread_entry() 217 ftp_client.nx_ftp_client_data_port + 2, &data_port); in client_thread_entry() [all …]
|
D | netx_ftp_basic_test.c | 25 static NX_FTP_CLIENT ftp_client; variable 183 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 188 status = nx_ftp_client_delete(&ftp_client); in client_thread_entry() 193 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 198 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 203 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERIODIC_R… in client_thread_entry() 220 status = nx_ftp_client_file_write(&ftp_client, my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() 225 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 230 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_READ, NX_IP_PERIODIC_RA… in client_thread_entry() 235 status = nx_ftp_client_file_read(&ftp_client, &my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() [all …]
|
D | netx_ftp_establish_data_connection_06_test.c | 25 static NX_FTP_CLIENT ftp_client; variable 185 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 190 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 195 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERIODIC_R… in client_thread_entry() 212 status = nx_ftp_client_file_write(&ftp_client, my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() 217 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 223 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_READ, NX_IP_PERIODIC_RA… in client_thread_entry() 228 status = nx_ftp_client_file_read(&ftp_client, &my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() 233 status = nx_ftp_client_file_read(&ftp_client, &my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() 242 if(ftp_client.nx_ftp_client_data_socket.nx_tcp_socket_state == NX_TCP_ESTABLISHED) in client_thread_entry() [all …]
|
D | netx_ftp_ipv6_epsv_test.c | 24 static NX_FTP_CLIENT ftp_client; variable 231 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 236 …status = nxd_ftp_client_connect(&ftp_client, &server_ip_address, "name", "password", NX_IP_PERIOD… in client_thread_entry() 241 status = nx_ftp_client_passive_mode_set(&ftp_client, NX_TRUE); in client_thread_entry() 248 _nx_ftp_client_passive_transfer_setup(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 249 nx_tcp_socket_disconnect(&(ftp_client.nx_ftp_client_data_socket), NX_NO_WAIT); in client_thread_entry() 250 nx_tcp_client_socket_unbind(&(ftp_client.nx_ftp_client_data_socket)); in client_thread_entry() 253 status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_WRITE, 100); in client_thread_entry() 275 status = nx_ftp_client_file_write(&ftp_client, my_packet, 500); in client_thread_entry() 283 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() [all …]
|
D | netx_ftp_establish_data_connection_05_test.c | 26 static NX_FTP_CLIENT ftp_client; variable 183 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 188 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 193 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERIODIC_R… in client_thread_entry() 198 nx_tcp_socket_disconnect(&(ftp_client.nx_ftp_client_control_socket), NX_IP_PERIODIC_RATE); in client_thread_entry() 201 nx_tcp_client_socket_unbind(&(ftp_client.nx_ftp_client_control_socket)); in client_thread_entry() 205 if(ftp_client.nx_ftp_client_control_socket.nx_tcp_socket_state == NX_TCP_CLOSED) in client_thread_entry() 208 if(ftp_client.nx_ftp_client_data_socket.nx_tcp_socket_state != NX_TCP_ESTABLISHED) in client_thread_entry() 212 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 217 status = nx_ftp_client_disconnect(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() [all …]
|
D | netx_ftp_service_commands_rename_test.c | 26 static NX_FTP_CLIENT ftp_client; variable 187 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 192 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 197 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERIODIC_R… in client_thread_entry() 214 status = nx_ftp_client_file_write(&ftp_client, my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() 219 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 223 status = nx_ftp_client_file_rename(&ftp_client,"test.txt","test1.txt",NX_IP_PERIODIC_RATE); in client_thread_entry() 230 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_READ, NX_IP_PERIODIC_RA… in client_thread_entry() 234 …status = nx_ftp_client_file_open(&ftp_client, "test1.txt", NX_FTP_OPEN_FOR_READ, NX_IP_PERIODIC_R… in client_thread_entry() 239 status = nx_ftp_client_file_read(&ftp_client, &my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() [all …]
|
D | netx_ftp_commands_replys_test.c | 26 static NX_FTP_CLIENT ftp_client; variable 191 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 199 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 215 …status = nx_tcp_socket_send(&(ftp_client.nx_ftp_client_control_socket), my_packet, NX_IP_PERIODIC… in client_thread_entry() 220 …status = nx_tcp_socket_receive(&(ftp_client.nx_ftp_client_control_socket), &my_packet, NX_IP_PERI… in client_thread_entry() 237 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERIODIC_R… in client_thread_entry() 250 status = nx_ftp_client_file_write(&ftp_client, my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() 255 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 260 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_READ, NX_IP_PERIODIC_RA… in client_thread_entry() 265 status = nx_ftp_client_file_read(&ftp_client, &my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() [all …]
|
D | netx_ftp_user_data_type_test.c | 26 static NX_FTP_CLIENT ftp_client; variable 186 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 191 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 197 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERIODIC_R… in client_thread_entry() 216 status = nx_ftp_client_file_write(&ftp_client, my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() 221 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 226 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_READ, NX_IP_PERIODIC_RA… in client_thread_entry() 231 status = nx_ftp_client_file_read(&ftp_client, &my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() 238 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 243 status = nx_ftp_client_disconnect(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() [all …]
|
D | netx_ftp_client_packet_leak_test.c | 25 static NX_FTP_CLIENT ftp_client; variable 183 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 188 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 197 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERIODIC_R… in client_thread_entry() 218 status = nx_ftp_client_file_write(&ftp_client, my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() 223 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 232 status = nx_ftp_client_directory_listing_get(&ftp_client, "", &my_packet, 200); in client_thread_entry() 245 status = nx_ftp_client_directory_listing_continue(&ftp_client, &my_packet, 200); in client_thread_entry() 262 status = nx_ftp_client_disconnect(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 271 status = nx_ftp_client_delete(&ftp_client); in client_thread_entry()
|
D | netx_ftp_service_commands_RETR_STOR_test.c | 27 static NX_FTP_CLIENT ftp_client; variable 206 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 211 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 216 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERIODIC_R… in client_thread_entry() 233 status = nx_ftp_client_file_write(&ftp_client, my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() 238 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 243 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_READ, NX_IP_PERIODIC_RA… in client_thread_entry() 248 status = nx_ftp_client_file_read(&ftp_client, &my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() 257 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 262 status = nx_ftp_client_disconnect(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() [all …]
|
D | netx_ftp_service_commands_file_write_test.c | 34 static NX_FTP_CLIENT ftp_client; variable 216 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 232 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 238 …status = nx_ftp_client_file_open(&ftp_client, "test_2.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERIODIC… in client_thread_entry() 258 status = nx_ftp_client_file_write(&ftp_client, my_packet, 10*NX_IP_PERIODIC_RATE); in client_thread_entry() 263 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 273 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERIODIC_R… in client_thread_entry() 293 status = nx_ftp_client_file_write(&ftp_client, my_packet, 10*NX_IP_PERIODIC_RATE); in client_thread_entry() 298 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 307 status = nx_ftp_client_disconnect(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() [all …]
|
D | netx_ftp_control_connection_test.c | 27 static NX_FTP_CLIENT ftp_client; variable 183 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 188 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 193 status = nx_tcp_socket_disconnect(&(ftp_client.nx_ftp_client_data_socket), NX_IP_PERIODIC_RATE); in client_thread_entry() 198 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERIODIC_R… in client_thread_entry() 203 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 208 status = nx_ftp_client_disconnect(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 213 status = nx_ftp_client_delete(&ftp_client); in client_thread_entry()
|
D | netx_ftp_establish_data_connection_08_test.c | 26 static NX_FTP_CLIENT ftp_client; variable 187 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 192 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 197 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERIODIC_R… in client_thread_entry() 214 status = nx_ftp_client_file_write(&ftp_client, my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() 221 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 225 if(ftp_client.nx_ftp_client_data_socket.nx_tcp_socket_state != NX_TCP_CLOSED) in client_thread_entry() 229 status = nx_ftp_client_disconnect(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 234 status = nx_ftp_client_delete(&ftp_client); in client_thread_entry()
|
D | netx_ftp_commands_characters_test.c | 26 static NX_FTP_CLIENT ftp_client; variable 189 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 194 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 200 status = nx_ftp_client_directory_create(&ftp_client,"/abc", NX_IP_PERIODIC_RATE/2); in client_thread_entry() 220 …status = nx_tcp_socket_send(&(ftp_client.nx_ftp_client_control_socket), my_packet, NX_IP_PERIODIC… in client_thread_entry() 225 …status = nx_tcp_socket_receive(&(ftp_client.nx_ftp_client_control_socket), &my_packet, NX_IP_PERI… in client_thread_entry() 232 status = nx_ftp_client_directory_default_set(&ftp_client, "/abc" ,NX_IP_PERIODIC_RATE/2); in client_thread_entry() 236 status = nx_ftp_client_directory_default_set(&ftp_client, "/def" ,NX_IP_PERIODIC_RATE/2); in client_thread_entry() 241 status = nx_ftp_client_disconnect(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 247 status = nx_ftp_client_delete(&ftp_client); in client_thread_entry()
|
D | netx_ftp_pasv_port_test.c | 24 static NX_FTP_CLIENT ftp_client; variable 182 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 187 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 192 status = nx_ftp_client_passive_mode_set(&ftp_client, NX_TRUE); in client_thread_entry() 210 …status = nx_tcp_socket_send(&(ftp_client.nx_ftp_client_control_socket), my_packet, NX_IP_PERIODIC… in client_thread_entry() 217 …status = nx_tcp_socket_receive(&(ftp_client.nx_ftp_client_control_socket), &recv_packet_ptr, NX_I… in client_thread_entry() 236 status = nx_ftp_client_disconnect(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 241 status = nx_ftp_client_delete(&ftp_client); in client_thread_entry()
|
D | netx_ftp_access_control_commands_04_test.c | 26 static NX_FTP_CLIENT ftp_client; variable 190 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 195 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 202 nx_ftp_client_directory_create(&ftp_client,"/abc", NX_IP_PERIODIC_RATE); in client_thread_entry() 206 status = nx_ftp_client_directory_default_set(&ftp_client, "/abc" , NX_IP_PERIODIC_RATE); in client_thread_entry() 226 …status = nx_tcp_socket_send(&(ftp_client.nx_ftp_client_control_socket), my_packet, NX_IP_PERIODIC… in client_thread_entry() 235 nx_ftp_client_directory_delete(&ftp_client,"/abc",NX_IP_PERIODIC_RATE); in client_thread_entry() 241 status = nx_ftp_client_disconnect(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 247 status = nx_ftp_client_delete(&ftp_client); in client_thread_entry()
|
D | netx_ftp_server_invalid_month_crash_test.c | 26 static NX_FTP_CLIENT ftp_client; variable 192 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 197 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 202 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERIODIC_R… in client_thread_entry() 219 status = nx_ftp_client_file_write(&ftp_client, my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() 224 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 232 …status = nx_ftp_client_file_open(&ftp_client, "test1.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERIODIC_… in client_thread_entry() 249 status = nx_ftp_client_file_write(&ftp_client, my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() 254 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 259 status = ftp_client_directory_listing_get(&ftp_client, "", &my_packet, 200); in client_thread_entry() [all …]
|
D | netx_ftp_disconnection_event_test.c | 24 static NX_FTP_CLIENT ftp_client; variable 182 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 187 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 192 status = nx_ftp_client_passive_mode_set(&ftp_client, NX_TRUE); in client_thread_entry() 201 …status = nx_ftp_client_directory_listing_get(&ftp_client, "/test", &recv_packet_ptr, NX_IP_PERIODI… in client_thread_entry() 216 status = nx_ftp_client_disconnect(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 221 status = nx_ftp_client_delete(&ftp_client); in client_thread_entry()
|
D | netx_ftp_server_list_command_test.c | 27 static NX_FTP_CLIENT ftp_client; variable 192 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 197 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 202 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERIODIC_R… in client_thread_entry() 227 status = nx_ftp_client_file_write(&ftp_client, my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() 237 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 246 status = ftp_client_directory_listing_get(&ftp_client, "", &my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() 263 status = nx_ftp_client_disconnect(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() 268 status = nx_ftp_client_delete(&ftp_client); in client_thread_entry()
|
/NetX-Duo-v6.4.1/samples/ |
D | demo_netxduo_ftp.c | 44 NX_FTP_CLIENT ftp_client; variable 335 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 353 …status = nxd_ftp_client_connect(&ftp_client, &server_ip_address, "name", "password", NX_IP_PERIOD… in client_thread_entry() 359 …status = nx_ftp_client_connect(&ftp_client, FTP_SERVER_ADDRESS, "name", "password", NX_IP_PERIODI… in client_thread_entry() 374 status = nx_ftp_client_passive_mode_set(&ftp_client, NX_TRUE); in client_thread_entry() 386 status = nx_ftp_client_transfer_mode_set(&ftp_client, NX_FTP_TRANSFER_MODE_BLOCK); in client_thread_entry() 398 …status = nx_ftp_client_file_open(&ftp_client, "test.txt", NX_FTP_OPEN_FOR_WRITE, NX_IP_PERIODIC_R… in client_thread_entry() 411 status = nx_ftp_client_file_size_set(&ftp_client, 28); in client_thread_entry() 440 status = nx_ftp_client_file_write(&ftp_client, my_packet, NX_IP_PERIODIC_RATE); in client_thread_entry() 454 status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); in client_thread_entry() [all …]
|