dftp
所属分类:Ftp客户端
开发工具:C/C++
文件大小:41KB
下载次数:167
上传日期:2004-11-04 00:38:49
上 传 者:
willisfield
说明: 用c写的ftp客户端源代码,可以在UNIX,Windows下编译通过,学习的好代码!
(used to write the ftp client source code, in UNIX, Windows compile and study the good code!)
文件列表:
commands.c (10691, 1996-09-08)
commands.h (1848, 1996-09-08)
dftp.dsw (2425, 1996-09-08)
dftp.ide (29964, 1996-09-08)
dftp.mak (7552, 1996-09-08)
dftp.mdp (34816, 1996-09-08)
dftp.ncb (107520, 1996-09-08)
dftpmake.mak (3956, 1996-11-23)
enums.h (913, 1996-09-08)
extfuncs.h (1631, 1996-09-08)
fileio.c (6198, 1996-09-08)
help.c (3526, 1996-09-08)
help.h (730, 1996-09-08)
keyio.c (4836, 1996-09-08)
main.c (2733, 1996-09-08)
Makefile (200, 1996-08-25)
scon.c (10015, 1996-09-08)
scon.h (1835, 1996-09-08)
Hi,
**NOTE** 11/23/96
dftpmake.mak was added. It was submitted by Alfons Hoogervorst.
Email address: proteus@worldaccess.nl
The make file is for Symantec C++ and Borland C++. He said
it works with both Symantec's SMAKE and Borland's MAKE.
My thanks to him.
**End of NOTE**
#
This is a primitive ftp client sample. I just said one day
that I wanted to write an ftp client. And so I did. Now I am
releasing the code.
A lot of things were not implemented in this client. This is
to make sure that you learn something. I want you to try and
implement the rest of it. Please share anything you do with
other people as I have. I don't have a lot of time to work on
this.
This example ftp client compiles on UNIX, Windows NT (VC++
4.0 & BC++ 4.02). You do not need to recode anything. I did
all the porting. Anything that is system dependent has been
'#ifdeffed' or '#if defined'.
The 'makefile' file is for compiling on UNIX. dftp.mak &
dftp.mdb are for VC++ 4.0. dftp.ide are for BC++ 4.02.
Basically you need all the .c files. You should just start
your own project and add all the files. VC++ defines WIN32 or
_WIN32. BC++ does not for some reason. So, in your project
setup (for BC++) make sure you define WIN32 or _WIN32. Or,
you can just insert '#define WIN32 1' on top of every .c file
and .h file. On UNIX, just do a make for the makefile.
Now, the files were uploaded to UNIX and zipped. If you are
on a PC, you will have to worry about line feed, cr problems.
If you have VC++ you won't have to worry about this. I am not
sure about BC++. If BC++ gives you problems when you open the
files about lines being too long or something, just use MS-DOS
Edit program to open and save each source file.
Remember that this project (for BC++ & VC++) are console app
projects. I am using some console api functions such as
SetConsoleTitle(). This is not a GUI program. In fact, there
is no Window creation necessary and none is done. Winsock
messages are processed with select() and not WSAAsyncSelect().
I hope this helps anyone, and I hope that you share your
knowledge with other people. If you have problems, send me
mail at donald@uh.edu or donald@menudo.uh.edu or
donald@sina.hpc.uh.edu.
Have fun.
-Donald
近期下载者:
相关文件:
收藏者: