| 386 | } |
| 387 | |
| 388 | int FTPClientWrapperSSL::SetTransferMode(Transfer_Mode tMode) { |
| 389 | if (!m_connected) //requires active connection |
| 390 | return -1; |
| 391 | |
| 392 | switch(tMode) { |
| 393 | case Mode_ASCII: { |
| 394 | m_client.SetTransferType(0); //0=ASCII |
| 395 | break; } |
| 396 | case Mode_Binary: { |
| 397 | m_client.SetTransferType(1); //1=IMAGE |
| 398 | break; } |
| 399 | case Mode_TransferMax: |
| 400 | default: |
| 401 | return -1; |
| 402 | } |
| 403 | |
| 404 | return 0; |
| 405 | } |
| 406 | |
| 407 | int FTPClientWrapperSSL::SetPortRange(int min, int max) { |
| 408 | m_client.SetDataPortRange(min, max); |
nothing calls this directly
no test coverage detected