資源簡介
c++實現(xiàn)局域網(wǎng)文件傳送基于socket含客戶端和服務(wù)端

代碼片段和文件信息
//?Client.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Client.h“
#include?“ClientDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CClientApp
BEGIN_MESSAGE_MAP(CClientApp?CWinApp)
//{{AFX_MSG_MAP(CClientApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CClientApp?construction
CClientApp::CClientApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CClientApp?object
CClientApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CClientApp?initialization
BOOL?CClientApp::InitInstance()
{
if?(!AfxSocketInit())
{
AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
return?FALSE;
}
//?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.
CClientDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????676??2012-11-26?15:15??Server\Server.clw
?????文件???????3579??2000-07-27?20:46??Server\ReadMe.txt
?????文件????????535??2000-07-27?20:47??Server\Server.dsw
?????文件???????1324??2000-07-27?20:46??Server\Server.h
?????文件???????1951??2000-07-27?20:46??Server\Server.cpp
?????文件???????2056??2000-08-01?13:32??Server\ServerDlg.h
?????文件???????4025??2000-08-01?14:22??Server\ServerDlg.cpp
?????文件???????1047??2000-07-27?20:46??Server\StdAfx.h
?????文件????????208??2000-07-27?20:46??Server\StdAfx.cpp
?????文件????????398??2000-07-27?20:46??Server\res\Server.rc2
?????文件???????1078??2000-07-27?20:46??Server\res\Server.ico
?????文件????????591??2000-08-01?14:19??Server\resource.h
?????文件???????4638??2000-08-01?14:19??Server\Server.rc
?????文件???????4141??2000-07-27?21:19??Server\Server.dsp
?????文件??????41984??2012-11-26?15:17??Server\Server.ncb
?????文件???????2220??2012-11-26?15:16??Server\Debug\Server.res
?????文件?????214016??2012-11-26?15:16??Server\Debug\vc60.idb
?????文件????6942492??2012-11-26?15:16??Server\Debug\Server.pch
?????文件?????364544??2012-11-26?15:16??Server\Debug\vc60.pdb
?????文件????1393190??2012-11-26?15:16??Server\Debug\StdAfx.sbr
?????文件?????106970??2012-11-26?15:16??Server\Debug\StdAfx.obj
?????文件???????2642??2012-11-26?15:16??Server\Debug\Server.sbr
?????文件???????3947??2012-11-26?15:16??Server\Debug\ServerDlg.sbr
?????文件??????22996??2012-11-26?15:16??Server\Debug\ServerDlg.obj
?????文件??????13374??2012-11-26?15:16??Server\Debug\Server.obj
?????文件?????196064??2012-11-26?15:16??Server\Debug\Server.ilk
?????文件?????106593??2012-11-26?15:16??Server\Debug\Server.exe
?????文件?????279552??2012-11-26?15:16??Server\Debug\Server.pdb
?????文件??????20356??2012-11-26?15:15??Server\Server.aps
?????文件???????3453??2012-11-26?15:16??Server\Server.plg
............此處省略63個文件信息
- 上一篇:C++ Google地圖API源碼
- 下一篇:matlab說話人識別
評論
共有 條評論