vcftp源代码
❶ 在VC程序中如何用ftp与服务器连接并从服务器上下载文件
我要回复《在VC程序中如何用FTP与服务器连接?并从服务器上下载文件?》
能够在如此精彩的帖子后面留下自己的网名是多么骄傲的一件事啊!
❷ FTP服务器与客户端设计 VC++ 源代码
FTP客户端倒是挺多的,一般都是要求只做个客户端软件,服务器直接用ServerU来测试的。不过我之前看过一个FTP客户端和服务器端都有的,你参考一下呢,好像也是VC做的,MFC的那种。
❸ 如何用VC开发SFTP的客户端
一、路由器下的FTP服务端:
路由器下的FTP服务端,需要解决一个“安全验证”问题,IE客户端会核对服务端的IP
地址,因为服务端是内外两个IP,而使IE客户端安全验证失败,但专业FTP客户端CuteFTP9、LeapFTP3
可以不核对IP验证,而使访问成功,但用户总是喜欢IE做客户端,为此需要找一个解决“安全验证”
的FTP服务端,FileZilla FTP Server就是最实用小巧的FTP理想服务端,只有1M多一点,非常小巧。
二、路由器下的FTP服务端要被外网IE访问的因素:
1. FTP服务端WINDOWS电脑要关闭自带的防火墙或设成FTP服务程序为“例外”;
2. 路由器下的电脑服务器要设成路由器的DMZ主机,这样服务端端口就.开.放在外网,
才能被外网所访问,所以,服务端电脑要设成静态IP如 192.168.1.10,并把路由器的
DMZ主机设为此IP,设DMZ后就不需要再设.端.口.映.射.了;
3. FileZilla FTP SERVER要设成被动方式PASV,并要指定一个外网IP,以解决NAT的安全验
证问题,否则,客户端不能被WINDOWS的IE所访问,但能被CuteFTP访问;
4. 外网的端.口不能被运营商所封或者不能是共享外网IP地址的NAT代理,端口会因NAT改变;
三、FileZilla FTP Server需要的设定:
1. 需要设定为 Passive被动模式:端口范围可为设为 10000-10050
2. 指定的IP要设为外IP:以解决“安全验证”问题
这个外IP就是将要被访问的FTP://外IP
3. 用户增加 anonymous,密码不设,这是匿名方式;
4. 共享文件夹设成你的一个被访问目录;
5. 其它21号服务端口等缺省参数不需改动。
四、程序说明:
一、FileZilla server.exe 这是后台服务程序,运行后启动服务就可;
二、FileZilaa Server Interface.exe 这是界面管理程序,让管理员设定参数的。
❹ VC++怎么获取FTP上的文件大小信息
通过CFtpFileFind 得到文件的URL之后,然后通过CHttpFile::QueryInfo 得到文件大小。
❺ vc编写的ftp客户端能够实现上传和下载,怎么使下载的文件名和原文件名字一致,而不是“*。*”代码怎么改
你都会做ftp程序了,怎么会在打开文件名字上折腾呢,奇怪了. 你看你的另存为调出窗口函数是什么代码实现,改一下即可.
❻ vc中我做了一个读写txt的小程序,为什么写入后读出来的只有一个字母
你看看这个函数
BOOL WriteLogFile(CString log)
{
FILE *fp;
CHAR strhead[30]="";
SYSTEMTIME st;
GetLocalTime(&st);
memset(strhead, 0, sizeof(strhead));
sprintf(strhead, "%4d-%02d-%02d %02d:%02d:%02d ", st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond);
fp = fopen("./FtpLog.txt", "a+");
if(fp!=NULL)
{
fwrite(strhead, sizeof(CHAR), strlen(strhead), fp);
fwrite(log, sizeof(CHAR), strlen(log), fp);
fwrite("\n", 1, 1, fp);
fclose(fp);
return TRUE;
}
return FALSE;
}
❼ 怎样用VC在vs2008环境下编写一个可以访问ftp服务器下的目录文件的程序,求:详细步骤
对不起,我对FTP不怎么理解。
我可以告诉你方法:
1)、仔细研究下FTP协议,FTP是应用层的协议,可以直接建立套接字应用程序,直接将需要访问的目录信息发给服务器。
2)、建立套接字时,服务端口一般是21,IP即是服务器的IP。
3)、遵循FTP通信协议和服务器进行通讯,这样别说是访问FTP下的目录,就是直接上传下载文件都是可以的。
❽ c++中可以修改project和源文件的名字吗如何修改
如果是VC工程名字在编程环境外改,
源文件名字可以在环境里改,但不得不重新把修改后的文件加入到工程中.
把原来的文件从工程中删掉
❾ 多线程FTP程序用VC/C++如何设计
这是codeproject的关于ftp的实现,你可以去down源代码
Introction
StuffFTP is a free for life FTP client. This FTP client will allow you to connect to FTP servers and upload and download files.
Motivation
Why did I create and continue to support StuffFTP? First it is a learning experience, and since I just got laid off from my company, I decided to use some of the tools they have provided, its legal as I technically bought them and they do not have other programmers following in my footstep nor do they plan on hiring any, to create something for the community. I also used another FTP program that was freeware for a while and then became pay to use software with little to no notice. That irked me and a friend suggested I create my own FTP client. So I am.
Progress
This is currently a work in progress and I would be the first to say there is a lot of work to do. Since I am laid off, I have lots of time on my hands. And this is an excellent chance for me to learn some of the concepts of C++ that I wanted to, but never had the chance while I was working. I was hoping to get a job in San Jose, CA, but decided to hold off and live on saving for a while.
Guarantee
I will support this program as best as I can. I have already setup a website and forum for it, here. I use the forum because I have trouble responding to email especially when I get a whole bunch of SPAM everyday. There is no adware or spyware in the program, and I guarantee that it will be free for the life of the program.
Some people have already asked why I don't open source the project. The main reason is I do not know if I can. StuffFTP uses some proprietary third party libraries. I do not know if I can post the source code or header files to those libraries. So everyone will have to wait until I can get rid of those libraries or hear back from the companies concerning my question about releasing header and associated help files.
Tools
* MS Windows XP Professional
* MS Visual Studio .NET C++/MFC
* Clickteam Install Maker
* Clickteam Patch Maker
* Betaone.net forum members
* CXListCtrl by Hans Dietrich
3rd Party Libraries
The application uses Catalyst Socket Tools Library Edition and Professional UI GUI library. So far the support has been fair with Prof-UI and outstanding with Catalyst. The Catalyst tool is for the actual FTP connection and, as the name suggests, Prof-UI is being used for the GUI.
Updates
You can find the latest updates here and you can also find my latest ramblings, blogs, and support here. This is where you can find out all the latest versions and information.
How to contribute
Money! Just kidding you can contribute by downloading, using, and giving feedback on the program. That way I can determine which path to take with the application and which features to prioritize or not. Graphics is also where I need lots of help. I am left brained and can not draw a good stick figure to save my life. If you can help with graphics or anything else, please let me know. Also talk to me, I am bored. I have no job at the moment so I can use the company.
Features
* Able to upload/download from server/computer
* Connect to FTP sites using login
* Connect using other ports besides 21
* Delete, rename, and CHMOD a file
History
* 12/10/2003 - Version 0.11a
* 12/07/2003 - Version 0.10a