|
-
Apr 6th, 2001, 03:13 AM
#1
Thread Starter
Member
Hello,
I have the following question ; I use API ‘wininet.dll’ to set up an ftp connection. I need to connect to various ftp servers in various countries. (like spain,england, turkey) With most countries, I can get an connection and transfer files, etc. Except for Turkey. They have a poor connection, and I don’t get a connection with my vb program. The strange thing is, when I use the program ‘windows commander v4.6’, I can get the connection… what am I doing wrong ? I already changed these settings
Public Const INTERNET_OPTION_CONNECT_RETRIES = 1
Public Const INTERNET_OPTION_CONNECT_TIMEOUT = 3
Public Const INTERNET_OPTION_RECIEVE_TIMEOUT = 7
But with bo result however…
The code I use to connect to the ftp server is
hConnection = InternetConnect(hOpen, "ftp-server", INTERNET_INVALID_PORT_NUMBER, "user", "password", INTERNET_SERVICE_FTP, dwSeman, 0)
Can someone give me some advice ?
thx
-
Apr 6th, 2001, 09:47 AM
#2
New Member
Well, you're probably not going to like my answer, but I always use Winsock API because it gives greater control over the connection interchanges.
My stab in the dark is that maybe those other two servers don't require passive transfers, and the turkey server does. *shrug* I don't know.
-
Apr 8th, 2001, 04:41 PM
#3
Thread Starter
Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|