I'm not sure which one of these to use and which is the easiest to use......any help on this???
Printable View
I'm not sure which one of these to use and which is the easiest to use......any help on this???
Asking the question “which is faster” is irrelevant to the question of “which is more practical to use in my application”. Taking into consideration that the Inet control is based upon the Winsock API.
Ok,
What is the fastest FTP method for VB6?
Inet is better and more customizable IMO, but winsock is probably easier to work with... but I've never been able to get winsock to work.
FTP is the same speed no matter how you implement it. The limiting factor is the bandwidth, not your application's efficiency.
I'm assuming you mean fastest file transfer. If you mean fastest way to write the actual code I would say use the chilkat FTP active x component. I think it is free and you can get it at chilkatsoft.com
If you really wanted to get faster preformance, and you are writing your own ftp client, and server. You could compress the data transmission between the two. ipswitch makes ftp software that does this too.
Very well put, Spetnik :thumb:
In other words, the INet control is easy as hell but very limited and Winsock is a pain in the ass to use. :)
Recently I've used the INet control in my app to use an FTP connection, but it suffers from a timeout and it cannot transfer files Ascii.
Take a look at this thread and check out James' article. Using FTP via API is very easy and much more stable. :D
Using the winsock control is not a pain in the ass if you know how to use it. It sure is alot easyer then using the actuall Winsock 2.0 API calls. LOL
Maybe I sould write a winsock tutorial?