FTP-Server-vb6

所属分类:Ftp服务器
开发工具:Visual Basic
文件大小:75KB
下载次数:64
上传日期:2012-01-04 23:19:01
上 传 者玉溪小平
说明:  FTP服务器源代码,功能实现,是学习FTP编辑的好资料。
(FTP Server VB6)

文件列表:
FTP服务器 vb源码\AddEditDir.frm (2188, 2008-06-23)
FTP服务器 vb源码\AddEditDir.frx (20, 2008-06-23)
FTP服务器 vb源码\Balk.cls (2063, 2000-04-25)
FTP服务器 vb源码\burro.exe (147456, 2008-06-23)
FTP服务器 vb源码\burro.ini (394, 2011-12-19)
FTP服务器 vb源码\Burro.vbp (1065, 2008-06-23)
FTP服务器 vb源码\Burro.vbw (479, 2011-12-22)
FTP服务器 vb源码\FindFolder.frm (3800, 2008-06-23)
FTP服务器 vb源码\FindFolder.frx (4, 2008-06-23)
FTP服务器 vb源码\FndFile.bas (3142, 1999-08-25)
FTP服务器 vb源码\frmFtp.frm (5562, 2008-06-23)
FTP服务器 vb源码\frmFtp.frx (782, 2008-06-23)
FTP服务器 vb源码\frmFtp.log (324, 2010-01-18)
FTP服务器 vb源码\frmProcess.frm (564, 2000-04-14)
FTP服务器 vb源码\FTPServ.ico (3126, 1999-08-22)
FTP服务器 vb源码\MainApp.cls (2913, 2000-04-25)
FTP服务器 vb源码\MSSCCPRJ.SCC (335, 2008-06-23)
FTP服务器 vb源码\Profiles.bas (4658, 2000-04-17)
FTP服务器 vb源码\Read Me.txt (32, 2001-11-28)
FTP服务器 vb源码\UserOpts.frm (14811, 2008-06-23)
FTP服务器 vb源码\UserOpts.frx (8, 2008-06-23)
FTP服务器 vb源码\UserOpts.log (241, 2010-01-18)
FTP服务器 vb源码\VBSOCK.BAS (30730, 2000-04-25)
FTP服务器 vb源码\WindProc.bas (38609, 2000-04-25)
FTP服务器 vb源码\Winsock.bas (12710, 2000-04-11)
FTP服务器 vb源码 (0, 2011-12-19)

Here is the skinny on this FTP server. This is the only true multiuser FTP server available on Planet Source Code. Some of the other examples did a fine job handling winsock commands but failed at providing multitasking. The result was while a file was being transfered every other activity was blocked. This code creates a separate thread for each logged on client and makes sure incoming requests are not blocked. Since the VB6 development environment can not handle multiple threads, you must compile the program and run the executable in order to take advantage to it's multithreaded capabilities. The threads also increased performance. For example initially on our 100 base T network file downloads averaged about 10k a second because a timer (set to 5 ms) was used to push the blocks out. On a separate thread we increased the transfer speed to up to 2000 k per second or better. Our need was for a basic file transfer engine and not necessarily a full blown ftp server. We have implemented most of the major ftp commands except for PASV. If anyone does this we would appreciate the code. We basically ignored most of the setup, security, logging, and user interface elements of the project because they weren't important to us. It really needs some work on the security interface(it doesn't work at all, you have to edit the burro.ini file directly to grant/deny privileges to a directory. Could also change it to give a client a home directory with access to anything lower in the directory structure, but nothing above his home directory. Another thing that would be important in a complete FTP server would be a process that keeps track of each clients idle time and logs off the laggards. I guess this project could qualified as advanced since it engulfs both winsocks and threads. It is not a tutorial and is not commented as a teaching tool. You are own your own and it is yours to do with as you want. No warranty, no support, no consulting. Basically the main thread listens on port 21, receives all messages for the server through the hidden form frmProcess, handles logon and disconnect functions directly and passes all other ftp commands to the object it creates (Jenny of class Balk) for each client. Each Jenny runs on a separate thread. Every command sent to the client object is delayed by a timer function that gives control back to the main thread before the command is executed. When the client logs off the object and it's thread are destroyed. All the testing done was with the ftp client that comes with Windows NT 4.0. Some of our names are whimiscal and unprofessional. We call the project Burro because initially the analogy was it's a beast of burden for moving packets around. The analogy still works because the code was stubborn to get working. After we got the threading working it still worked because it was really hauling ass. A Jenny is a type of burro. Goofy stuff so change it before you show it off to the a pointy haired boss. Have fun with this it is great way to learn about the nuances of winsocks and threads. This project modified Jay Bray's (another inspiration for the burro analogy) ftp server. Most of the multitasking code came straight out of VB Books Online. troyston@paperlessnow.com

近期下载者

相关文件


收藏者