资源简介
该项目实现了在linux环境下的文件传输功能,能够将客户端的文件上传给服务器,同时能够将服务器的文件下载到客户端,可以在客户端查看更改双方路径及目录,并且支持多任务。在项目中应用了TCP网络编程,文件IO,多任务编程,进程间通信等相关知识,熟练综合运用了linux应用层相关知识。

代码片段和文件信息
// Ftp.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “Ftp.h“
#include “FtpDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CFtpApp
BEGIN_MESSAGE_MAP(CFtpApp CWinApp)
//{{AFX_MSG_MAP(CFtpApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CFtpApp construction
CFtpApp::CFtpApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CFtpApp object
CFtpApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CFtpApp initialization
BOOL CFtpApp::InitInstance()
{
if (!AfxSocketInit())
{
AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
return FALSE;
}
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
CFtpDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed return FALSE so that we exit the
// application rather than start the application‘s message pump.
return FALSE;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 122935 2011-06-21 14:16 复件 Ftp\Debug\Ftp.exe
文件 290820 2011-06-21 14:16 复件 Ftp\Debug\Ftp.ilk
文件 16034 2011-06-05 13:48 复件 Ftp\Debug\Ftp.obj
文件 5564364 2011-06-05 12:02 复件 Ftp\Debug\Ftp.pch
文件 459776 2011-06-21 14:16 复件 Ftp\Debug\Ftp.pdb
文件 3368 2011-06-08 21:09 复件 Ftp\Debug\Ftp.res
文件 72909 2011-06-21 14:16 复件 Ftp\Debug\FtpDlg.obj
文件 106259 2011-06-05 12:02 复件 Ftp\Debug\StdAfx.obj
文件 222208 2011-06-21 14:16 复件 Ftp\Debug\vc60.idb
文件 389120 2011-06-21 14:16 复件 Ftp\Debug\vc60.pdb
文件 36788 2011-06-08 21:09 复件 Ftp\Ftp.aps
文件 1456 2011-06-21 14:15 复件 Ftp\Ftp.clw
文件 2115 2011-06-05 11:42 复件 Ftp\Ftp.cpp
文件 4105 2011-06-05 11:42 复件 Ftp\Ftp.dsp
文件 514 2011-06-05 12:07 复件 Ftp\Ftp.dsw
文件 1291 2011-06-05 11:42 复件 Ftp\Ftp.h
文件 66560 2011-06-21 14:17 复件 Ftp\Ftp.ncb
文件 54784 2011-06-21 14:17 复件 Ftp\Ftp.opt
文件 1014 2011-06-21 14:16 复件 Ftp\Ftp.plg
文件 6061 2011-06-08 21:09 复件 Ftp\Ftp.rc
文件 15815 2011-06-21 14:15 复件 Ftp\FtpDlg.cpp
文件 1855 2011-06-08 21:38 复件 Ftp\FtpDlg.h
文件 3525 2011-06-05 11:42 复件 Ftp\ReadMe.txt
文件 1398 2011-06-05 13:36 复件 Ftp\res\Ftp.ico
文件 395 2011-06-05 11:42 复件 Ftp\res\Ftp.rc2
文件 1232 2011-06-08 21:09 复件 Ftp\resource.h
文件 205 2011-06-05 11:42 复件 Ftp\StdAfx.cpp
文件 1102 2011-06-05 11:42 复件 Ftp\StdAfx.h
目录 0 2011-06-21 14:16 复件 Ftp\Debug
目录 0 2011-06-06 17:46 复件 Ftp\res
............此处省略4个文件信息
- 上一篇:读取串口(COM)工具
- 下一篇:WP10部署工具
相关资源
- PcShutDownByTime.zip
- Cisco无线AP全部配置文件(AIR-1200系列
- 安卓手机PC端一键重启工具
- ManualIciMapping_v3.1
- FreeRTOS采样ADC+KEY事件信号+DMA串口收发
- Microservices_Designing_Deploying
-
Design for em
bedded Image Processing on FPG - A Sequential Bundle Method for Solving a MPEC
- GNU/Linux系统开发者需要从桌面突破
- the_definitive_guide_to_linux_network_programm
- Concurrency in Go(EarlyRelease) 无水印p
- Concurrency in Go Tools and Techniques for Dev
- BTCETH开发
- linux-shell脚本命令:grep命令简介
- cfx中ccl语言使用手册
- STC15F
- 解读AT89C2051遥控接收器电路设计原理
- 电路图天天读19:局域网中红外遥控发
- SOUGDay_Oracle18cNewSecurity_SOE(Oracle s
- HP Compaq dc7100商用台式机系列
- HP Compaq 8200 Elite 系列商用台式机
- HP COMPAQ dc5000商用台式机系列
- HP商用PC数据即时恢复方案
- CiscoWorks QoS Policy Manager白皮书英文
- Theoretical study of the interaction between C
- CNN-SVM模型在抽油机井故障诊断中的应
- Assembly Language for x86 Processors (7th Ed
- class文件修改器hhclass
- Learning Linux Binary Analysis
- nmos转移特性曲线hspice程序—&mdas
评论
共有 条评论