|
-
Mar 14th, 2000, 11:00 PM
#1
Thread Starter
New Member
Hi,
I'm attempting to use the winsock control to access an FTP site and retrieve various files (primarily .zip and .exe)
I've setup two winsock controls :-
The first one connects to the FTP server, sends USER and PASS (anonymous), and then completes the PORT command.
The second listens on the localport sent via the PORT command on the first winsock control.
After this the first winsock control requests the file i require.
I get 'Opening ASCII mode data connection' response through the first control and even a completed '226' control code.
Here's the problem - nothing is sent to the second winsock control. If i change the localport to something other than the one specified by the PORT command before requesting file, i get an error from the FTP server - so i presume(?) there must be communication going on between the ports, yet the standard - winsock2.GetData StrData, vbString - in the Data_Arrival section yeilds nothing!?!
If anyone has any ideas on what i might be doing wrong i'd appreciate the helps.
Oh yeh, i'm using TCP protocol
Thanks,
Matt
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
|