Discussion:
How do I verify an Active Connection to FTP server?
(too old to reply)
Zarepheth
2004-08-02 23:31:28 UTC
Permalink
I am trying to programmatically determine whether or not my WinInet
connection to an FTP server is still valid and active. All the information
I have thus far found only tells me whether or not I can make a connection
to some place on the internet, not whether the HInternet handle for a
specific connection is still valid.

Does anyone have suggestions on how to accomplish this?
Brian Combs
2004-08-06 14:40:47 UTC
Permalink
Hello
The only way is to send an FTP command. WinInet does not give any way to
check the and see if the socket is still open other then trying to use the
connection.

Thanks
Brian [MSFT]
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Zarepheth" <***@_please_hotmail.com>
| Subject: How do I verify an Active Connection to FTP server?
| Date: Mon, 2 Aug 2004 18:31:28 -0500
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
| Message-ID: <***@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.inetsdk.programming.wininet
| NNTP-Posting-Host: c-24-118-0-37.mn.client2.attbi.com 24.118.0.37
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.inetsdk.programming.wininet:11228
| X-Tomcat-NG: microsoft.public.inetsdk.programming.wininet
|
| I am trying to programmatically determine whether or not my WinInet
| connection to an FTP server is still valid and active. All the
information
| I have thus far found only tells me whether or not I can make a connection
| to some place on the internet, not whether the HInternet handle for a
| specific connection is still valid.
|
| Does anyone have suggestions on how to accomplish this?
|
|
|
|

Loading...