91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 7KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-11-11
  • 語言: 其他
  • 標(biāo)簽: linux??c??ftp??源代碼??

資源簡介

該項目實現(xiàn)了在linux環(huán)境下的文件傳輸功能,能夠?qū)⒖蛻舳说奈募蟼鹘o服務(wù)器,同時能夠?qū)⒎?wù)器的文件下載到客戶端,可以在客戶端查看更改雙方路徑及目錄,并且支持多任務(wù)。在項目中應(yīng)用了TCP網(wǎng)絡(luò)編程,文件IO,多任務(wù)編程,進(jìn)程間通信等相關(guān)知識,熟練綜合運(yùn)用了linux應(yīng)用層相關(guān)知識。

資源截圖

代碼片段和文件信息

//?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??復(fù)件?Ftp\Debug\Ftp.exe

?????文件?????290820??2011-06-21?14:16??復(fù)件?Ftp\Debug\Ftp.ilk

?????文件??????16034??2011-06-05?13:48??復(fù)件?Ftp\Debug\Ftp.obj

?????文件????5564364??2011-06-05?12:02??復(fù)件?Ftp\Debug\Ftp.pch

?????文件?????459776??2011-06-21?14:16??復(fù)件?Ftp\Debug\Ftp.pdb

?????文件???????3368??2011-06-08?21:09??復(fù)件?Ftp\Debug\Ftp.res

?????文件??????72909??2011-06-21?14:16??復(fù)件?Ftp\Debug\FtpDlg.obj

?????文件?????106259??2011-06-05?12:02??復(fù)件?Ftp\Debug\StdAfx.obj

?????文件?????222208??2011-06-21?14:16??復(fù)件?Ftp\Debug\vc60.idb

?????文件?????389120??2011-06-21?14:16??復(fù)件?Ftp\Debug\vc60.pdb

?????文件??????36788??2011-06-08?21:09??復(fù)件?Ftp\Ftp.aps

?????文件???????1456??2011-06-21?14:15??復(fù)件?Ftp\Ftp.clw

?????文件???????2115??2011-06-05?11:42??復(fù)件?Ftp\Ftp.cpp

?????文件???????4105??2011-06-05?11:42??復(fù)件?Ftp\Ftp.dsp

?????文件????????514??2011-06-05?12:07??復(fù)件?Ftp\Ftp.dsw

?????文件???????1291??2011-06-05?11:42??復(fù)件?Ftp\Ftp.h

?????文件??????66560??2011-06-21?14:17??復(fù)件?Ftp\Ftp.ncb

?????文件??????54784??2011-06-21?14:17??復(fù)件?Ftp\Ftp.opt

?????文件???????1014??2011-06-21?14:16??復(fù)件?Ftp\Ftp.plg

?????文件???????6061??2011-06-08?21:09??復(fù)件?Ftp\Ftp.rc

?????文件??????15815??2011-06-21?14:15??復(fù)件?Ftp\FtpDlg.cpp

?????文件???????1855??2011-06-08?21:38??復(fù)件?Ftp\FtpDlg.h

?????文件???????3525??2011-06-05?11:42??復(fù)件?Ftp\ReadMe.txt

?????文件???????1398??2011-06-05?13:36??復(fù)件?Ftp\res\Ftp.ico

?????文件????????395??2011-06-05?11:42??復(fù)件?Ftp\res\Ftp.rc2

?????文件???????1232??2011-06-08?21:09??復(fù)件?Ftp\resource.h

?????文件????????205??2011-06-05?11:42??復(fù)件?Ftp\StdAfx.cpp

?????文件???????1102??2011-06-05?11:42??復(fù)件?Ftp\StdAfx.h

?????目錄??????????0??2011-06-21?14:16??復(fù)件?Ftp\Debug

?????目錄??????????0??2011-06-06?17:46??復(fù)件?Ftp\res

............此處省略4個文件信息

評論

共有 條評論