MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / SetConnectionMode

Method SetConnectionMode

src/FTPClientWrapperSSL.cpp:372–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372int FTPClientWrapperSSL::SetConnectionMode(Connection_Mode cMode) {
373 switch(cMode) {
374 case Mode_Active: {
375 m_client.SetFireWallMode(FALSE);
376 break; }
377 case Mode_Passive: {
378 m_client.SetFireWallMode(TRUE);
379 break; }
380 case Mode_ConnectionMax:
381 default:
382 return -1;
383 }
384
385 return 0;
386}
387
388int FTPClientWrapperSSL::SetTransferMode(Transfer_Mode tMode) {
389 if (!m_connected) //requires active connection

Callers

nothing calls this directly

Calls 1

SetFireWallModeMethod · 0.80

Tested by

no test coverage detected