WFQ算法实现c/c++


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
eceiver
eceiverDebugdesktop.ini

     文件     110693  2010-06-04 13:24  WFQ
eceiver
eceiverDebug
eceiver.exe

     文件     231944  2010-06-04 13:24  WFQ
eceiver
eceiverDebug
eceiver.ilk

     文件      14998  2010-06-04 13:24  WFQ
eceiver
eceiverDebug
eceiver.obj

     文件    5571700  2010-06-04 13:24  WFQ
eceiver
eceiverDebug
eceiver.pch

     文件     394240  2010-06-04 13:24  WFQ
eceiver
eceiverDebug
eceiver.pdb

     文件       3088  2010-06-04 13:24  WFQ
eceiver
eceiverDebug
eceiver.res

     文件      32100  2010-06-04 13:24  WFQ
eceiver
eceiverDebug
eceiverDlg.obj

     文件     106905  2010-06-04 13:24  WFQ
eceiver
eceiverDebugStdAfx.obj

     文件     222208  2010-06-04 13:24  WFQ
eceiver
eceiverDebugvc60.idb

     文件     364544  2010-06-04 13:24  WFQ
eceiver
eceiverDebugvc60.pdb

     文件       3615  2010-06-04 13:24  WFQ
eceiver
eceiverReadMe.txt

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

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

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

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

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

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

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

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

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

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

     文件       9110  2010-06-04 13:24  WFQ
eceiver
eceiver
eceiverDlg.cpp

     文件       1637  2010-06-04 13:24  WFQ
eceiver
eceiver
eceiverDlg.h

     文件      24576  2010-06-04 13:24  WFQ
eceiver
eceiverRelease
eceiver.exe

     文件      10918  2010-06-04 13:24  WFQ
eceiver
eceiverRelease
eceiver.obj

     文件    5996584  2010-06-04 13:24  WFQ
eceiver
eceiverRelease
eceiver.pch

     文件       3372  2010-06-04 13:24  WFQ
eceiver
eceiverRelease
eceiver.res

     文件      21544  2010-06-04 13:24  WFQ
eceiver
eceiverRelease
eceiverDlg.obj

     文件        828  2010-06-04 13:24  WFQ
eceiver
eceiverReleaseStdAfx.obj

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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)