• 大小: 14.98MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-02
  • 语言: C/C++
  • 标签: WFQ  

资源简介

WFQ算法的实现及其与FIFO性能比较,类WFQ和FIFO调度算法。发送端和接收端是用c++编写的,路由器转发的调度是用c编写

资源截图

代码片段和文件信息

// 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;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.       271  2010-06-04 13:24  WFQ\receiver\receiver\Debug\desktop.ini

     文件     110693  2010-06-04 13:24  WFQ\receiver\receiver\Debug\receiver.exe

     文件     231944  2010-06-04 13:24  WFQ\receiver\receiver\Debug\receiver.ilk

     文件      14998  2010-06-04 13:24  WFQ\receiver\receiver\Debug\receiver.obj

     文件    5571700  2010-06-04 13:24  WFQ\receiver\receiver\Debug\receiver.pch

     文件     394240  2010-06-04 13:24  WFQ\receiver\receiver\Debug\receiver.pdb

     文件       3088  2010-06-04 13:24  WFQ\receiver\receiver\Debug\receiver.res

     文件      32100  2010-06-04 13:24  WFQ\receiver\receiver\Debug\receiverDlg.obj

     文件     106905  2010-06-04 13:24  WFQ\receiver\receiver\Debug\StdAfx.obj

     文件     222208  2010-06-04 13:24  WFQ\receiver\receiver\Debug\vc60.idb

     文件     364544  2010-06-04 13:24  WFQ\receiver\receiver\Debug\vc60.pdb

     文件       3615  2010-06-04 13:24  WFQ\receiver\receiver\ReadMe.txt

     文件      22424  2010-06-04 13:24  WFQ\receiver\receiver\receiver.aps

     文件       1829  2010-06-04 13:24  WFQ\receiver\receiver\receiver.clw

     文件       2185  2010-06-04 13:24  WFQ\receiver\receiver\receiver.cpp

     文件       4195  2010-06-04 13:24  WFQ\receiver\receiver\receiver.dsp

     文件        541  2010-06-04 13:24  WFQ\receiver\receiver\receiver.dsw

     文件       1622  2010-06-04 13:24  WFQ\receiver\receiver\receiver.h

     文件      74752  2010-06-04 13:24  WFQ\receiver\receiver\receiver.ncb

     文件      49664  2010-06-04 13:24  WFQ\receiver\receiver\receiver.opt

     文件          0  2010-06-04 13:24  WFQ\receiver\receiver\receiver.plg

     文件       6366  2010-06-04 13:24  WFQ\receiver\receiver\receiver.rc

     文件       9110  2010-06-04 13:24  WFQ\receiver\receiver\receiverDlg.cpp

     文件       1637  2010-06-04 13:24  WFQ\receiver\receiver\receiverDlg.h

     文件      24576  2010-06-04 13:24  WFQ\receiver\receiver\Release\receiver.exe

     文件      10918  2010-06-04 13:24  WFQ\receiver\receiver\Release\receiver.obj

     文件    5996584  2010-06-04 13:24  WFQ\receiver\receiver\Release\receiver.pch

     文件       3372  2010-06-04 13:24  WFQ\receiver\receiver\Release\receiver.res

     文件      21544  2010-06-04 13:24  WFQ\receiver\receiver\Release\receiverDlg.obj

     文件        828  2010-06-04 13:24  WFQ\receiver\receiver\Release\StdAfx.obj

............此处省略341个文件信息

评论

共有 条评论

相关资源