📄 readme.txt
字号:
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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -