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

  • 大小: 103KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-18
  • 語言: 其他
  • 標簽: C++??Broadcast??

資源簡介

局域網廣播是UDP的應用之一。UDP協議與TCP協議同樣是基于IP協議的,但與TCP不同的是它不需要協議層提供質量保證,因此,UDP在很多需要實時數據傳輸的情況下比較常用。此外,由于不提供質量保證,服務器沒有必要一直處于等待狀態,這樣就大大減輕了服務器的負擔。

資源截圖

代碼片段和文件信息

//?BCServer.cpp?:?Defines?the?class?behaviors?for?the?application.
//

#include?“stdafx.h“
#include?“BCServer.h“
#include?“BCServerDlg.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
//?CBCServerApp

BEGIN_MESSAGE_MAP(CBCServerApp?CWinApp)
//{{AFX_MSG_MAP(CBCServerApp)
//?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()

/////////////////////////////////////////////////////////////////////////////
//?CBCServerApp?construction

CBCServerApp::CBCServerApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}

/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CBCServerApp?object

CBCServerApp?theApp;

/////////////////////////////////////////////////////////////////////////////
//?CBCServerApp?initialization

BOOL?CBCServerApp::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

CBCServerDlg?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;
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

????.......????114830??2018-05-28?16:35??01\BCServer.exe

????.......?????22244??2018-05-28?16:35??01\source?code\BCServer\BCServer.aps

????.......??????2104??2018-05-28?16:35??01\source?code\BCServer\BCServer.clw

????.......??????2185??2018-05-28?16:35??01\source?code\BCServer\BCServer.cpp

????.......??????4596??2018-05-28?16:35??01\source?code\BCServer\BCServer.dsp

????.......???????541??2018-05-28?16:35??01\source?code\BCServer\BCServer.dsw

????.......??????1346??2018-05-28?16:35??01\source?code\BCServer\BCServer.h

????.......????107520??2018-05-28?16:35??01\source?code\BCServer\BCServer.ncb

????.......?????55808??2018-05-28?16:35??01\source?code\BCServer\BCServer.opt

????.......???????250??2018-05-28?16:35??01\source?code\BCServer\BCServer.plg

????.......??????6092??2018-05-28?16:35??01\source?code\BCServer\BCServer.rc

????.......??????6065??2018-05-28?16:35??01\source?code\BCServer\BCServerDLG.cpp

????.......??????1635??2018-05-28?16:35??01\source?code\BCServer\BCServerDLG.h

????.......???????999??2018-05-28?16:35??01\source?code\BCServer\ClientSocket.cpp

????.......??????1192??2018-05-28?16:35??01\source?code\BCServer\ClientSocket.h

????.......??????1259??2018-05-28?16:35??01\source?code\BCServer\ListenSocket.cpp

????.......??????1191??2018-05-28?16:35??01\source?code\BCServer\ListenSocket.h

????.......???????974??2018-05-28?16:35??01\source?code\BCServer\PortSetDlg.cpp

????.......??????1222??2018-05-28?16:35??01\source?code\BCServer\PortSetDlg.h

????.......??????3615??2018-05-28?16:35??01\source?code\BCServer\ReadMe.txt

????.......??????1078??2018-05-28?16:35??01\source?code\BCServer\res\BCServer.ico

????.......???????400??2018-05-28?16:35??01\source?code\BCServer\res\BCServer.rc2

????.......??????1002??2018-05-28?16:35??01\source?code\BCServer\resource.h

????.......?????82944??2018-05-28?16:35??01\source?code\BCServer\ServerSocket.ncb

????.......?????56832??2018-05-28?16:35??01\source?code\BCServer\ServerSocket.opt

????.......???????210??2018-05-28?16:35??01\source?code\BCServer\StdAfx.cpp

????.......??????1102??2018-05-28?16:35??01\source?code\BCServer\StdAfx.h

????.......??????1029??2018-05-28?16:35??01\source?code\UseSocket\ClientUseSocket.cpp

????.......??????1220??2018-05-28?16:35??01\source?code\UseSocket\ClientUseSocket.h

????.......??????1071??2018-05-28?16:35??01\source?code\UseSocket\ConnectDlg.cpp

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

評論

共有 條評論