資源簡介
可以以圖形化形式顯示滑動窗口協議操作的簡單過程,使用方便,操作簡單,包含源碼和可執行程序

代碼片段和文件信息
//?Receiver.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Receiver.h“
#include?“ReceiverDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CReceiverApp
BEGIN_MESSAGE_MAP(CReceiverApp?CWinApp)
//{{AFX_MSG_MAP(CReceiverApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CReceiverApp?construction
CReceiverApp::CReceiverApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CReceiverApp?object
CReceiverApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CReceiverApp?initialization
BOOL?CReceiverApp::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
CReceiverDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????485??2007-04-16?15:03??滑動窗口協議模擬程序\Receiver\Code\Protocol.h
?????文件???????3615??2007-04-12?08:56??滑動窗口協議模擬程序\Receiver\Code\ReadMe.txt
?????文件??????38476??2007-06-29?22:34??滑動窗口協議模擬程序\Receiver\Code\Receiver.aps
?????文件???????2374??2007-06-30?09:05??滑動窗口協議模擬程序\Receiver\Code\Receiver.clw
?????文件???????2185??2007-04-12?08:56??滑動窗口協議模擬程序\Receiver\Code\Receiver.cpp
?????文件???????4233??2007-06-29?20:36??滑動窗口協議模擬程序\Receiver\Code\Receiver.dsp
?????文件????????539??2007-04-12?08:56??滑動窗口協議模擬程序\Receiver\Code\Receiver.dsw
?????文件???????1346??2007-04-12?08:56??滑動窗口協議模擬程序\Receiver\Code\Receiver.h
?????文件?????107520??2007-06-30?09:06??滑動窗口協議模擬程序\Receiver\Code\Receiver.ncb
?????文件?????100352??2007-06-30?09:06??滑動窗口協議模擬程序\Receiver\Code\Receiver.opt
?????文件???????1985??2007-06-30?09:06??滑動窗口協議模擬程序\Receiver\Code\Receiver.plg
?????文件??????15513??2007-06-30?08:00??滑動窗口協議模擬程序\Receiver\Code\ReceiverDlg.cpp
?????文件???????3133??2007-06-30?08:01??滑動窗口協議模擬程序\Receiver\Code\ReceiverDlg.h
?????文件???????1421??2007-04-18?16:24??滑動窗口協議模擬程序\Receiver\Code\resource.h
?????文件????????210??2007-04-12?08:56??滑動窗口協議模擬程序\Receiver\Code\StdAfx.cpp
?????文件???????1102??2007-04-12?08:56??滑動窗口協議模擬程序\Receiver\Code\StdAfx.h
?????文件????2134130??2007-06-30?09:06??滑動窗口協議模擬程序\Receiver.exe
?????文件????????485??2007-04-16?15:03??滑動窗口協議模擬程序\Sender\Code\Protocol.h
?????文件???????3579??2007-04-11?21:22??滑動窗口協議模擬程序\Sender\Code\ReadMe.txt
?????文件???????1373??2007-04-16?20:52??滑動窗口協議模擬程序\Sender\Code\resource.h
?????文件??????38220??2007-06-29?15:35??滑動窗口協議模擬程序\Sender\Code\Sender.aps
?????文件???????2256??2007-06-29?20:36??滑動窗口協議模擬程序\Sender\Code\Sender.clw
?????文件???????2063??2007-04-16?16:05??滑動窗口協議模擬程序\Sender\Code\Sender.cpp
?????文件???????4236??2007-06-29?20:37??滑動窗口協議模擬程序\Sender\Code\Sender.dsp
?????文件????????535??2007-04-11?21:22??滑動窗口協議模擬程序\Sender\Code\Sender.dsw
?????文件???????1324??2007-04-11?21:22??滑動窗口協議模擬程序\Sender\Code\Sender.h
?????文件?????107520??2007-06-29?20:37??滑動窗口協議模擬程序\Sender\Code\Sender.ncb
?????文件?????101376??2007-06-29?20:37??滑動窗口協議模擬程序\Sender\Code\Sender.opt
?????文件???????1932??2007-06-29?20:36??滑動窗口協議模擬程序\Sender\Code\Sender.plg
?????文件??????14760??2007-06-29?16:39??滑動窗口協議模擬程序\Sender\Code\SenderDlg.cpp
............此處省略15個文件信息
評論
共有 條評論