
Need help writing FTP client in VB
Quote:
>Hi all,
>I'm writing (or rather, trying to write) a simple ftp client using the Dolphin
>Systems socket control. Firstly, is this the right tool to be using ?
>I've managed to connect to the remote host ok, but synchronizing the dialogue
>between my client and the ftp server is proving troublesome. What messages
>should I be waiting for FROM the server to tell the client that its OK to send
>the next message ? After the connection is made I send "USER <name>" and I'm
>waiting for a "331 Password required" message, but it never comes.
>I've got one control on the form...should I be using two, perhaps ? One for
>sending, one for receiving ?
>All advice gratefully accepted - e-mail preferred :)
>"Lost in C-Space"
I have done this using Dolphin's dsSocket and it is used in a
production application on campus. It is a little complicated but
certainly not impossible. You will need a second control if you want
to do a LIST, RETR, or SEND command. You probably will since you are
trying to do FTP. And you will need the PORT command and if your
application won't be aware of the local ip address you will need the
PASV command. There are lots of little quirky things to work through.
Contact me offline if you want to pursue this.
Paul Briggs
University of Guelph
Guelph, Ontario, Canada