-
大小: 300KB文件類型: .zip金幣: 1下載: 0 次發(fā)布日期: 2021-01-06
- 標(biāo)簽: 網(wǎng)絡(luò)編程??c++??源代碼??
資源簡(jiǎn)介
本資源為書上源代碼。全書分為10章,第1章介紹網(wǎng)絡(luò)編程的基本概念及模式,第2章介紹套接字網(wǎng)絡(luò)編程基礎(chǔ),第3章介紹Windows環(huán)境的WinSock編程基礎(chǔ),第4章介紹MFC編程,第5章介紹MFC WinSock類的編程,第6章介紹WinInet編程,第7章介紹WinSock的多線程編程,第8章介紹WinSock的I/O模型,第9章介紹HTTP及高級(jí)編程,第10章介紹電子郵件協(xié)議與編程。
代碼片段和文件信息
//?CSocket.cpp:?implementation?of?the?CCSocket?class.
//
//////////////////////////////////////////////////////////////////////
#include?“stdafx.h“
#include?“tc.h“
#include?“CSocket.h“
#include?“tcDlg.h“
#ifdef?_DEBUG
#undef?THIS_FILE
static?char?THIS_FILE[]=__FILE__;
#define?new?DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
//?Construction/Destruction
//////////////////////////////////////////////////////////////////////
IMPLEMENT_DYNAMIC(CCSocketCSocket)
//構(gòu)造函數(shù)
CCSocket::CCSocket(CTcDlg*?pDlg)
{
m_pDlg?=?pDlg;???????//成員變量賦值
}
CCSocket::~CCSocket()
{
m_pDlg?=?NULL;
}
//事件處理函數(shù),當(dāng)套接字收到FD_READ消息時(shí),執(zhí)行此函數(shù)
void?CCSocket::OnReceive(int?nErrorCode)?
{
CSocket::OnReceive(nErrorCode);
//調(diào)用CTcDlg類的相應(yīng)函數(shù)處理
if?(n
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-05-27?11:04??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\
?????目錄???????????0??2016-02-25?08:19??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\
?????目錄???????????0??2016-02-25?08:19??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\
?????目錄???????????0??2016-02-25?08:19??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\
?????目錄???????????0??2016-02-25?08:19??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\.vs\
?????目錄???????????0??2016-02-25?08:19??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\.vs\tc\
?????目錄???????????0??2016-02-25?08:19??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\.vs\tc\v14\
?????文件???????17920??2016-01-10?20:26??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\.vs\tc\v14\.suo
?????文件?????????881??2005-07-29?11:55??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\CSocket.cpp
?????文件?????????598??2005-07-28?13:39??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\CSocket.h
?????文件?????????841??2005-07-29?09:46??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\Msg.cpp
?????文件?????????546??2005-07-29?09:46??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\Msg.h
?????文件?????????204??2005-07-26?09:39??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\StdAfx.cpp
?????文件????????1102??2005-07-26?09:39??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\StdAfx.h
?????目錄???????????0??2016-02-25?08:19??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\res\
?????文件????????1078??2005-07-26?09:39??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\res\tc.ico
?????文件?????????394??2005-07-26?09:39??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\res\tc.rc2
?????文件????????1185??2005-07-26?10:05??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\resource.h
?????文件????????2101??2005-07-26?09:39??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\tc.cpp
?????文件????????1280??2005-07-26?09:39??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\tc.h
?????文件????????5929??2005-07-28?22:51??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\tc.rc
?????文件?????????931??2015-12-25?15:22??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\tc.sln
?????文件????????8004??2015-12-29?22:04??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\tc.vcxproj
?????文件????????2284??2015-12-25?15:22??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\tc.vcxproj.filters
?????文件????????9587??2005-07-30?14:41??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\tcDlg.cpp
?????文件????????1957??2005-07-29?11:35??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_client\tcDlg.h
?????目錄???????????0??2016-02-25?08:19??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_server\
?????目錄???????????0??2016-02-25?08:19??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_server\.vs\
?????目錄???????????0??2016-02-25?08:19??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_server\.vs\ts\
?????目錄???????????0??2016-02-25?08:19??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_server\.vs\ts\v14\
?????文件???????17920??2016-01-10?20:23??網(wǎng)絡(luò)編程實(shí)用教程(程序源代碼)\第05章\多點(diǎn)聊天\t_server\.vs\ts\v14\.suo
............此處省略221個(gè)文件信息
評(píng)論
共有 條評(píng)論