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

  • 大小: 4.18MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-09-17
  • 語言: C/C++
  • 標簽: Socket程序??

資源簡介

C++編寫的Socket通信程序源代碼,C++編寫的Socket通信程序源代碼

資源截圖

代碼片段和文件信息

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

#include?“stdafx.h“
#include?“Client.h“
#include?“ClientDlg.h“

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

/////////////////////////////////////////////////////////////////////////////
//?CClientApp

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

/////////////////////////////////////////////////////////////////////////////
//?CClientApp?construction

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

/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CClientApp?object

CClientApp?theApp;

/////////////////////////////////////////////////////////////////////////////
//?CClientApp?initialization

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

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

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

????.CA....?????34952??2006-09-10?10:18??Socket通信\Client\Client.aps

????.CA....???????813??2006-09-10?10:18??Socket通信\Client\Client.clw

????.CA....??????2157??2006-09-10?10:12??Socket通信\Client\Client.cpp

????.CA....??????4159??2006-09-10?10:12??Socket通信\Client\Client.dsp

????.CA....???????535??2006-09-10?10:18??Socket通信\Client\Client.dsw

????.CA....??????1324??2006-09-10?10:12??Socket通信\Client\Client.h

????.CA....?????41984??2006-09-10?10:18??Socket通信\Client\Client.ncb

????.CA....?????48640??2006-09-10?10:18??Socket通信\Client\Client.opt

????.CA....???????670??2006-09-10?10:18??Socket通信\Client\Client.plg

????.CA....??????4767??2006-09-10?10:18??Socket通信\Client\Client.rc

????.CA....??????2779??2006-09-10?10:16??Socket通信\Client\ClientDlg.cpp

????.CA....??????1309??2006-09-10?10:13??Socket通信\Client\ClientDlg.h

????.CA....??????3579??2006-09-10?10:12??Socket通信\Client\ReadMe.txt

????.CA....??????1078??2006-09-10?10:12??Socket通信\Client\res\Client.ico

????.CA....???????398??2006-09-10?10:12??Socket通信\Client\res\Client.rc2

????.CA....???????637??2006-09-10?10:16??Socket通信\Client\resource.h

????.CA....???????208??2006-09-10?10:12??Socket通信\Client\StdAfx.cpp

????.CA....??????1102??2006-09-10?10:12??Socket通信\Client\StdAfx.h

????.CA....????106550??2006-09-10?10:18??Socket通信\Client.exe

????.CA....?????21536??2005-10-24?22:25??Socket通信\MyTcpClient\MyTcpClient.aps

????.CA....??????1195??2005-10-24?22:26??Socket通信\MyTcpClient\MyTcpClient.clw

????.CA....??????2227??2005-09-10?11:07??Socket通信\MyTcpClient\MyTcpClient.cpp

????.CA....??????4249??2005-09-10?11:07??Socket通信\MyTcpClient\MyTcpClient.dsp

????.CA....???????528??2005-09-10?11:07??Socket通信\MyTcpClient\MyTcpClient.dsw

????.CA....??????1379??2005-09-10?11:07??Socket通信\MyTcpClient\MyTcpClient.h

????.CA....?????58368??2006-09-09?11:51??Socket通信\MyTcpClient\MyTcpClient.ncb

????.CA....?????53760??2006-09-09?11:51??Socket通信\MyTcpClient\MyTcpClient.opt

????.CA....??????1127??2005-09-10?11:42??Socket通信\MyTcpClient\MyTcpClient.plg

????.CA....??????5419??2005-09-10?11:42??Socket通信\MyTcpClient\MyTcpClient.rc

????.CA....??????4762??2005-09-10?11:36??Socket通信\MyTcpClient\MyTcpClientDlg.cpp

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

評論

共有 條評論