CFtpConnection check for still connect

Posted on 2004-11-04
Last Modified: 2013-11-20
Is there an easy method to check if a CFtpConnection is still connected?

I realize that CInternetSession class has methods for setting up a call back function, but I'm looking to see if there's an easier method.
Question by:Axter
    LVL 86

    Accepted Solution

    The easiest way I could imagine would be calling 'CFtpConnection::GetCurrentDirectory()' - if that one fails, you for sure have a connection problem.
    LVL 30

    Author Comment

    Thanks jkr.

    Not exactly what I was looking for, but it's an easy enough method

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Suggested Solutions

    Title # Comments Views Activity
    if loop error 4 66
    Process filename extension 3 136
    lucky13 challenge 11 95
    How to convert MFC::CString to UTF8 wchar_t* 10 34
    Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now