Need help writing FTP client in VB 
Author Message
 Need help writing FTP client in VB

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"



Tue, 19 May 1998 03:00:00 GMT  
 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 have been using a shareware DLL ftp4w.dll and it works well.
I found this DLL in ftp4w12.zip . I have included it in my application.
If you don't have it, let me know and I will send You.
                                           Tibi.

 * Tiboldi Kalman       * TVH Forklift Parts * Tel: +3256434295 *

 * URL   : www.tvh.be   *      8560 Gullegem , Belgium          *



Tue, 19 May 1998 03:00:00 GMT  
 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 have been using a shareware DLL ftp4w.dll and it works well.
I found this DLL in ftp4w12.zip . I have included it in my application.
If you don't have it, let me know and I will send You.
                                           Tibi.

 * Tiboldi Kalman       * TVH Forklift Parts * Tel: +3256434295 *

 * URL   : www.tvh.be   *      8560 Gullegem , Belgium          *



Tue, 19 May 1998 03:00:00 GMT  
 Need help writing FTP client in VB
Your sorta reinventing the wheel, there are several ftp controls already available from Distinct,
defSoft, etc.

--
Tim Pearson

http://www.starwave.com



Tue, 19 May 1998 03:00:00 GMT  
 Need help writing FTP client in VB

Quote:
> 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 ?

What you are trying to achieve can be got at much easier using Netscape. Netscape
has OLE automation facilities built in which you can use very easily to create
a simple FTP client. Check out their home page for links which lead to their
developer resources, in particular the piece on OLE automation and Netscape.

You need to find out about the Network.1 object and the methods and properties
it provides.

If you get nowhere let me know and I will forward some source code for you
to check out.

Peter

--
+--------------------------------------------------------------------+
|               PSYNET LTD => HOME OF THE INTERNET HAMSTER           |
|           PROVIDING BUSINESS WITH SOLUTIONS NOT PROBLEMS           |
+--------------------------------------------------------------------+
|  E-MAIL                          |  Psynet Ltd                     |



|                                  |  BN22 9RG   (UK) 1323 507664    |
+----------------------------------+---------------------------------+

PGP PUBLIC KEY FOLLOWS

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6

mQCNAjBxZt0AAAEEANz14+MdmCoYYLaxnfl3gRATe7VuOxLefkBXmHhHM9cTWhro
dH5yW9LdzkHHdqarid+ZdFdLoWWqxTqCvGOIgCY79YvEGkoaXa8qiCdqJWQpCnHi
vXJ/4ye9krXjUNdYs3WyZo4lGlnI7Ck706UosXMZpb81WOTpAP4lvs/575fVAAUR
tCdQZXRlciBXcmlnaHQgPHBldGVyQGdlbmRldi5kZW1vbi5jby51az4=
=KjmD
-----END PGP PUBLIC KEY BLOCK-----



Tue, 19 May 1998 03:00:00 GMT  
 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"

The licensed release of dsSocket includes sample VB source for an FTP
client.  You need to have one control to handle the coomand channel on
port 21, one to listen for the return connection and one to handle the
actual data transfer.

Make sure that you are adding the CRLF to the end of the command you
send the server.

Steve

--------------------------------------------------
Stephen Cramp              Developers of dsSocket
Dolphin Systems Inc.       TCP/IP custom control

Demo on www.dolphinsys.com
--------------------------------------------------



Tue, 19 May 1998 03:00:00 GMT  
 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



Fri, 22 May 1998 03:00:00 GMT  
 Need help writing FTP client in VB
The book "Internet Programming" by Kris Jamsa and Ken Cope,
available from Jamsa Press (ISBN 1-884133-12-6) contains among
other things sample VB code for an FTP client under Winsock.  
The book also gives a lot of excellent background material for
anyone wanting to do Internet programming with Visual Basic.

I have tested the FTP client program presented in the book and
it does work, I think you would find the book helpful.

El Marco



Sun, 24 May 1998 03:00:00 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. Looking for open source project that write a FTP client in VB.NET

2. Looking for open source project that write a FTP client in VB.NET

3. Howto: Write FTP Client in VB 5.0

4. FTP Client written in VB?

5. Here's the FTP Client I wrote...

6. Here's the FTP Client I wrote...

7. Here's the FTP Client I wrote...

8. Here's the FTP Client I wrote...

9. ftp client application in VB.Net vs VB 6

10. ftp client application in VB.Net vs VB 6

11. i need the source for a remote ftp server + client

12. FTP Client needed with source code, can exchange...

 

 
Powered by phpBB® Forum Software