資源簡(jiǎn)介
TCP 端口掃描 多線程 課程設(shè)計(jì) 同步互斥 功能

代碼片段和文件信息
//?PortScan.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“PortScan.h“
#include?“PortScanDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CPortScanApp
BEGIN_MESSAGE_MAP(CPortScanApp?CWinApp)
//{{AFX_MSG_MAP(CPortScanApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CPortScanApp?construction
CPortScanApp::CPortScanApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CPortScanApp?object
CPortScanApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CPortScanApp?initialization
BOOL?CPortScanApp::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
CPortScanDlg?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;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-11-27?16:37??端口掃描\
?????目錄???????????0??2012-11-27?09:51??端口掃描\Debug\
?????文件?????3712000??2012-11-27?09:51??端口掃描\Debug\PortScan.bsc
?????文件??????114777??2012-11-27?09:51??端口掃描\Debug\PortScan.exe
?????文件??????425472??2012-11-27?09:51??端口掃描\Debug\PortScan.ilk
?????文件???????13231??2012-11-25?14:04??端口掃描\Debug\PortScan.obj
?????文件?????7090676??2012-11-19?19:30??端口掃描\Debug\PortScan.pch
?????文件??????410624??2012-11-27?09:51??端口掃描\Debug\PortScan.pdb
?????文件????????3164??2012-11-25?13:40??端口掃描\Debug\PortScan.res
?????文件???????????0??2012-11-25?14:04??端口掃描\Debug\PortScan.sbr
?????文件???????52954??2012-11-27?09:51??端口掃描\Debug\PortScanDlg.obj
?????文件???????????0??2012-11-27?09:51??端口掃描\Debug\PortScanDlg.sbr
?????文件??????106807??2012-11-19?19:30??端口掃描\Debug\StdAfx.obj
?????文件?????1391561??2012-11-19?19:30??端口掃描\Debug\StdAfx.sbr
?????文件??????345088??2012-11-27?10:08??端口掃描\Debug\vc60.idb
?????文件??????364544??2012-11-27?09:51??端口掃描\Debug\vc60.pdb
?????文件???????37312??2012-11-25?13:40??端口掃描\PortScan.aps
?????文件????????1786??2012-11-27?16:37??端口掃描\PortScan.clw
?????文件????????2185??2004-06-17?11:29??端口掃描\PortScan.cpp
?????文件?????????358??2004-06-23?14:02??端口掃描\PortScan.dep
?????文件????????4196??2012-11-19?22:52??端口掃描\PortScan.dsp
?????文件?????????541??2004-06-17?11:29??端口掃描\PortScan.dsw
?????文件????????1346??2004-06-17?11:29??端口掃描\PortScan.h
?????文件????????5841??2004-06-23?14:02??端口掃描\PortScan.mak
?????文件???????66560??2012-11-27?16:37??端口掃描\PortScan.ncb
?????文件???????51712??2012-11-27?16:37??端口掃描\PortScan.opt
?????文件????????1193??2012-11-27?09:51??端口掃描\PortScan.plg
?????文件????????6400??2012-11-25?13:40??端口掃描\PortScan.rc
?????文件???????13103??2012-11-27?09:51??端口掃描\PortScanDlg.cpp
?????文件????????2686??2012-11-25?14:04??端口掃描\PortScanDlg.h
?????文件????????3615??2004-06-17?11:29??端口掃描\ReadMe.txt
............此處省略6個(gè)文件信息
評(píng)論
共有 條評(píng)論