实例介绍
个人建议里面的代码不需要全部阅读 关键阅读第7到10章节 里面3个案例 p2p http的web服务器 ftp服务器 可以模仿下 如果对线程知识不了解 可以阅读书籍《win32 多线程编程》希望能给学习编程的朋友一些帮助
【实例截图】
【核心代码】
VC网络编程源代码
└── VC++网络编程源代码
├── 第10章 FTP编程:FTP服务器实例
│ └── FTP完整软件套件
│ ├── SelfFtpUpDownloader(usfor ftpSrver)
│ │ ├── SelfFtpUpDownloader
│ │ │ ├── ReadMe.txt
│ │ │ ├── SelfFtpUpDownloader.aps
│ │ │ ├── SelfFtpUpDownloader.cpp
│ │ │ ├── SelfFtpUpDownloader.h
│ │ │ ├── SelfFtpUpDownloader.rc
│ │ │ ├── SelfFtpUpDownloader.vcproj
│ │ │ ├── SelfFtpUpDownloader.vcproj.1652229459BB4B2.zhouhejun.user
│ │ │ ├── SelfFtpUpDownloaderDlg.cpp
│ │ │ ├── SelfFtpUpDownloaderDlg.h
│ │ │ ├── res
│ │ │ │ ├── SelfFtpUpDownloader.ico
│ │ │ │ └── SelfFtpUpDownloader.rc2
│ │ │ ├── resource.h
│ │ │ ├── stdafx.cpp
│ │ │ ├── stdafx.h
│ │ │ └── targetver.h
│ │ ├── SelfFtpUpDownloader.sln
│ │ └── SelfFtpUpDownloader.suo
│ └── ftpSrver
│ ├── ftpSrver
│ │ ├── AccountDlg.cpp
│ │ ├── AccountDlg.h
│ │ ├── ReadMe.txt
│ │ ├── Server.cpp
│ │ ├── Server.h
│ │ ├── ftpSrver.aps
│ │ ├── ftpSrver.cpp
│ │ ├── ftpSrver.h
│ │ ├── ftpSrver.rc
│ │ ├── ftpSrver.vcproj
│ │ ├── ftpSrver.vcproj.1652229459BB4B2.zhouhejun.user
│ │ ├── ftpSrverDlg.cpp
│ │ ├── ftpSrverDlg.h
│ │ ├── res
│ │ │ ├── ftpSrver.ico
│ │ │ └── ftpSrver.rc2
│ │ ├── resource.h
│ │ ├── stdafx.cpp
│ │ ├── stdafx.h
│ │ └── targetver.h
│ ├── ftpSrver.sln
│ └── ftpSrver.suo
├── 第11章 POP3实现邮件接收程序
│ └── popMailRcver
│ ├── popMailRcver
│ │ ├── Pop3.cpp
│ │ ├── Pop3.h
│ │ ├── ReadMe.txt
│ │ ├── WSocket.cpp
│ │ ├── WSocket.h
│ │ ├── popMailRcver.aps
│ │ ├── popMailRcver.cpp
│ │ ├── popMailRcver.h
│ │ ├── popMailRcver.rc
│ │ ├── popMailRcver.vcproj
│ │ ├── popMailRcver.vcproj.1652229459BB4B2.zhouhejun.user
│ │ ├── popMailRcverDlg.cpp
│ │ ├── popMailRcverDlg.h
│ │ ├── res
│ │ │ ├── popMailRcver.ico
│ │ │ └── popMailRcver.rc2
│ │ ├── resource.h
│ │ ├── stdafx.cpp
│ │ ├── stdafx.h
│ │ └── targetver.h
│ ├── popMailRcver.sln
│ └── popMailRcver.suo
├── 第1章 背景知识
│ └── GetIPAndPort
│ ├── GetIPAndPort
│ │ ├── GetIPAndPort.aps
│ │ ├── GetIPAndPort.cpp
│ │ ├── GetIPAndPort.h
│ │ ├── GetIPAndPort.rc
│ │ ├── GetIPAndPort.vcproj
│ │ ├── GetIPAndPort.vcproj.1652229459BB4B2.zhouhejun.user
│ │ ├── GetIPAndPortDlg.cpp
│ │ ├── GetIPAndPortDlg.h
│ │ ├── ReadMe.txt
│ │ ├── res
│ │ │ ├── GetIPAndPort.ico
│ │ │ └── GetIPAndPort.rc2
│ │ ├── resource.h
│ │ ├── stdafx.cpp
│ │ ├── stdafx.h
│ │ └── targetver.h
│ ├── GetIPAndPort.sln
│ └── GetIPAndPort.suo
├── 第2章 MFC Socket编程
│ ├── Socket程序(CAsyncSocket传统版)
│ │ ├── ChatClient
│ │ │ ├── ChatClient
│ │ │ │ ├── ChatClient.aps
│ │ │ │ ├── ChatClient.cpp
│ │ │ │ ├── ChatClient.h
│ │ │ │ ├── ChatClient.rc
│ │ │ │ ├── ChatClient.vcproj
│ │ │ │ ├── ChatClient.vcproj.1652229459BB4B2.zhouhejun.user
│ │ │ │ ├── ChatClientDlg.cpp
│ │ │ │ ├── ChatClientDlg.h
│ │ │ │ ├── ClientSocket.cpp
│ │ │ │ ├── ClientSocket.h
│ │ │ │ ├── ReadMe.txt
│ │ │ │ ├── res
│ │ │ │ │ ├── ChatClient.ico
│ │ │ │ │ └── ChatClient.rc2
│ │ │ │ ├── resource.h
│ │ │ │ ├── stdafx.cpp
│ │ │ │ ├── stdafx.h
│ │ │ │ └── targetver.h
│ │ │ ├── ChatClient.sln
│ │ │ └── ChatClient.suo
│ │ └── ChatServer
│ │ ├── ChatServer
│ │ │ ├── ChatServer.aps
│ │ │ ├── ChatServer.cpp
│ │ │ ├── ChatServer.h
│ │ │ ├── ChatServer.rc
│ │ │ ├── ChatServer.vcproj
│ │ │ ├── ChatServer.vcproj.1652229459BB4B2.zhouhejun.user
│ │ │ ├── ChatServerDlg.cpp
│ │ │ ├── ChatServerDlg.h
│ │ │ ├── ListenSocket.cpp
│ │ │ ├── ListenSocket.h
│ │ │ ├── ReadMe.txt
│ │ │ ├── ServerSocket.cpp
│ │ │ ├── ServerSocket.h
│ │ │ ├── res
│ │ │ │ ├── ChatServer.ico
│ │ │ │ └── ChatServer.rc2
│ │ │ ├── resource.h
│ │ │ ├── stdafx.cpp
│ │ │ ├── stdafx.h
│ │ │ └── targetver.h
│ │ ├── ChatServer.sln
│ │ └── ChatServer.suo
│ ├── Socket程序(CAsynvSocket指针版)
│ │ ├── ChatClient
│ │ │ ├── ChatClient
│ │ │ │ ├── ChatClient.aps
│ │ │ │ ├── ChatClient.cpp
│ │ │ │ ├── ChatClient.h
│ │ │ │ ├── ChatClient.rc
│ │ │ │ ├── ChatClient.vcproj
│ │ │ │ ├── ChatClient.vcproj.1652229459BB4B2.zhouhejun.user
│ │ │ │ ├── ChatClientDlg.cpp
│ │ │ │ ├── ChatClientDlg.h
│ │ │ │ ├── MySocket.cpp
│ │ │ │ ├── MySocket.h
│ │ │ │ ├── ReadMe.txt
│ │ │ │ ├── res
│ │ │ │ │ ├── ChatClient.ico
│ │ │ │ │ └── ChatClient.rc2
│ │ │ │ ├── resource.h
│ │ │ │ ├── stdafx.cpp
│ │ │ │ ├── stdafx.h
│ │ │ │ └── targetver.h
│ │ │ ├── ChatClient.sln
│ │ │ └── ChatClient.suo
│ │ └── ChatServer
│ │ ├── ChatServer
│ │ │ ├── ChatServer.aps
│ │ │ ├── ChatServer.cpp
│ │ │ ├── ChatServer.h
│ │ │ ├── ChatServer.rc
│ │ │ ├── ChatServer.vcproj
│ │ │ ├── ChatServer.vcproj.1652229459BB4B2.zhouhejun.user
│ │ │ ├── ChatServerDlg.cpp
│ │ │ ├── ChatServerDlg.h
│ │ │ ├── MySocket.cpp
│ │ │ ├── MySocket.h
│ │ │ ├── ReadMe.txt
│ │ │ ├── res
│ │ │ │ ├── ChatServer.ico
│ │ │ │ └── ChatServer.rc2
│ │ │ ├── resource.h
│ │ │ ├── stdafx.cpp
│ │ │ ├── stdafx.h
│ │ │ └── targetver.h
│ │ ├── ChatServer.sln
│ │ └── ChatServer.suo
│ ├── Socket程序(CSocket版)
│ │ ├── ChatClient
│ │ │ ├── ChatClient
│ │ │ │ ├── ChatClient.aps
│ │ │ │ ├── ChatClient.cpp
│ │ │ │ ├── ChatClient.h
│ │ │ │ ├── ChatClient.rc
│ │ │ │ ├── ChatClient.vcproj
│ │ │ │ ├── ChatClient.vcproj.1652229459BB4B2.zhouhejun.user
│ │ │ │ ├── ChatClientDlg.cpp
│ │ │ │ ├── ChatClientDlg.h
│ │ │ │ ├── MySocket.cpp
│ │ │ │ ├── MySocket.h
│ │ │ │ ├── ReadMe.txt
│ │ │ │ ├── res
│ │ │ │ │ ├── ChatClient.ico
│ │ │ │ │ └── ChatClient.rc2
│ │ │ │ ├── resource.h
│ │ │ │ ├── stdafx.cpp
│ │ │ │ ├── stdafx.h
│ │ │ │ └── targetver.h
│ │ │ ├── ChatClient.sln
│ │ │ └── ChatClient.suo
│ │ └── ChatServer
│ │ ├── ChatServer
│ │ │ ├── ChatServer.aps
│ │ │ ├── ChatServer.cpp
│ │ │ ├── ChatServer.h
│ │ │ ├── ChatServer.rc
│ │ │ ├── ChatServer.vcproj
│ │ │ ├── ChatServer.vcproj.1652229459BB4B2.zhouhejun.user
│ │ │ ├── ChatServerDlg.cpp
│ │ │ ├── ChatServerDlg.h
│ │ │ ├── MySocket.cpp
│ │ │ ├── MySocket.h
│ │ │ ├── ReadMe.txt
│ │ │ ├── res
│ │ │ │ ├── ChatServer.ico
│ │ │ │ └── ChatServer.rc2
│ │ │ ├── resource.h
│ │ │ ├── stdafx.cpp
│ │ │ ├── stdafx.h
│ │ │ └── targetver.h
│ │ ├── ChatServer.sln
│ │ └── ChatServer.suo
│ └── 第三方聊天室程序(实验用)
│ ├── Client
│ │ ├── Client.aps
│ │ ├── Client.clw
│ │ ├── Client.cpp
│ │ ├── Client.dsp
│ │ ├── Client.dsw
│ │ ├── Client.h
│ │ ├── Client.plg
│ │ ├── Client.rc
│ │ ├── Client.sln
│ │ ├── Client.suo
│ │ ├── Client.vcproj
│ │ ├── Client.vcproj.1652229459BB4B2.zhouhejun.user
│ │ ├── ClientDlg.cpp
│ │ ├── ClientDlg.h
│ │ ├── Mysocket.cpp
│ │ ├── Mysocket.h
│ │ ├── ReadMe.txt
│ │ ├── StdAfx.cpp
│ │ ├── StdAfx.h
│ │ ├── login.cpp
│ │ ├── login.h
│ │ ├── res
│ │ │ ├── Client.ico
│ │ │ └── Client.rc2
│ │ └── resource.h
│ └── Server
│ ├── ClientSocket.cpp
│ ├── ClientSocket.h
│ ├── ReadMe.txt
│ ├── Server.aps
│ ├── Server.clw
│ ├── Server.cpp
│ ├── Server.dsp
│ ├── Server.dsw
│ ├── Server.h
│ ├── Server.plg
│ ├── Server.rc
│ ├── Server.sln
│ ├── Server.suo
│ ├── Server.vcproj
│ ├── Server.vcproj.1652229459BB4B2.zhouhejun.user
│ ├── ServerDlg.cpp
│ ├── ServerDlg.h
│ ├── ServerSocket.cpp
│ ├── ServerSocket.h
│ ├── StdAfx.cpp
│ ├── StdAfx.h
│ ├── res
│ │ ├── Server.ico
│ │ └── Server.rc2
│ └── resource.h
├── 第3章 即时通信:网络聊天软件
│ └── SelfChatRoom
│ ├── SelfChat
│ │ ├── SelfChat
│ │ │ ├── ClientSocket.cpp
│ │ │ ├── ClientSocket.h
│ │ │ ├── ReadMe.txt
│ │ │ ├── SelfChat.aps
│ │ │ ├── SelfChat.cpp
│ │ │ ├── SelfChat.h
│ │ │ ├── SelfChat.rc
│ │ │ ├── SelfChat.vcproj
│ │ │ ├── SelfChat.vcproj.1652229459BB4B2.zhouhejun.user
│ │ │ ├── SelfChatDlg.cpp
│ │ │ ├── SelfChatDlg.h
│ │ │ ├── res
│ │ │ │ ├── SelfChat.ico
│ │ │ │ └── SelfChat.rc2
│ │ │ ├── resource.h
│ │ │ ├── stdafx.cpp
│ │ │ ├── stdafx.h
│ │ │ ├── tagHeader.h
│ │ │ └── targetver.h
│ │ ├── SelfChat.sln
│ │ └── SelfChat.suo
│ └── SelfRoom
│ ├── SelfRoom
│ │ ├── ClientSocket.cpp
│ │ ├── ClientSocket.h
│ │ ├── ReadMe.txt
│ │ ├── SelfRoom.aps
│ │ ├── SelfRoom.cpp
│ │ ├── SelfRoom.h
│ │ ├── SelfRoom.rc
│ │ ├── SelfRoom.vcproj
│ │ ├── SelfRoom.vcproj.1652229459BB4B2.zhouhejun.user
│ │ ├── SelfRoomDlg.cpp
│ │ ├── SelfRoomDlg.h
│ │ ├── ServerSocket.cpp
│ │ ├── ServerSocket.h
│ │ ├── res
│ │ │ ├── SelfRoom.ico
│ │ │ └── SelfRoom.rc2
│ │ ├── resource.h
│ │ ├── stdafx.cpp
│ │ ├── stdafx.h
│ │ ├── tagHeader.h
│ │ └── targetver.h
│ ├── SelfRoom.sln
│ └── SelfRoom.suo
├── 第4章 万维网:浏览器中的因特网
│ └── SelfBrowser
│ ├── SelfBrowser
│ │ ├── HtmlCodeViewDlg.cpp
│ │ ├── HtmlCodeViewDlg.h
│ │ ├── MainFrm.cpp
│ │ ├── MainFrm.h
│ │ ├── ReadMe.txt
│ │ ├── SelfBrowser.aps
│ │ ├── SelfBrowser.cpp
│ │ ├── SelfBrowser.h
│ │ ├── SelfBrowser.rc
│ │ ├── SelfBrowser.vcproj
│ │ ├── SelfBrowser.vcproj.1652229459BB4B2.zhouhejun.user
│ │ ├── SelfBrowserDoc.cpp
│ │ ├── SelfBrowserDoc.h
│ │ ├── SelfBrowserView.cpp
│ │ ├── SelfBrowserView.h
│ │ ├── res
│ │ │ ├── SelfBrowser.ico
│ │ │ ├── SelfBrowser.rc2
│ │ │ ├── SelfBrowserDoc.ico
│ │ │ └── Toolbar.bmp
│ │ ├── resource.h
│ │ ├── stdafx.cpp
│ │ ├── stdafx.h
│ │ └── targetver.h
│ ├── SelfBrowser.sln
│ └── SelfBrowser.suo
├── 第5章 文件上传下载:FTP客户端开发
│ └── SelfFtpUpDownloader
│ ├── SelfFtpUpDownloader
│ │ ├── ReadMe.txt
│ │ ├── SelfFtpUpDownloader.aps
│ │ ├── SelfFtpUpDownloader.cpp
│ │ ├── SelfFtpUpDownloader.h
│ │ ├── SelfFtpUpDownloader.rc
│ │ ├── SelfFtpUpDownloader.vcproj
│ │ ├── SelfFtpUpDownloader.vcproj.1652229459BB4B2.zhouhejun.user
│ │ ├── SelfFtpUpDownloaderDlg.cpp
│ │ ├── SelfFtpUpDownloaderDlg.h
│ │ ├── res
│ │ │ ├── SelfFtpUpDownloader.ico
│ │ │ └── SelfFtpUpDownloader.rc2
│ │ ├── resource.h
│ │ ├── stdafx.cpp
│ │ ├── stdafx.h
│ │ └── targetver.h
│ ├── SelfFtpUpDownloader.sln
│ └── SelfFtpUpDownloader.suo
├── 第6章 电子邮件
│ └── SelfMailSndRcver
│ ├── SelfMailSndRcver
│ │ ├── ReadMe.txt
│ │ ├── SelfMailSndRcver.aps
│ │ ├── SelfMailSndRcver.cpp
│ │ ├── SelfMailSndRcver.h
│ │ ├── SelfMailSndRcver.rc
│ │ ├── SelfMailSndRcver.vcproj
│ │ ├── SelfMailSndRcver.vcproj.1652229459BB4B2.zhouhejun.user
│ │ ├── SelfMailSndRcverDlg.cpp
│ │ ├── SelfMailSndRcverDlg.h
│ │ ├── emailContent.h
│ │ ├── res
│ │ │ ├── SelfMailSndRcver.ico
│ │ │ └── SelfMailSndRcver.rc2
│ │ ├── resource.h
│ │ ├── stdafx.cpp
│ │ ├── stdafx.h
│ │ └── targetver.h
│ ├── SelfMailSndRcver.sln
│ └── SelfMailSndRcver.suo
├── 第7章 Winsock API编程基础
│ ├── Socket程序(Winsock API版)
│ │ ├── ChatClient
│ │ │ ├── ChatClient
│ │ │ │ ├── ChatClient.aps
│ │ │ │ ├── ChatClient.cpp
│ │ │ │ ├── ChatClient.h
│ │ │ │ ├── ChatClient.rc
│ │ │ │ ├── ChatClient.vcproj
│ │ │ │ ├── ChatClient.vcproj.1652229459BB4B2.zhouhejun.user
│ │ │ │ ├── ChatClientDlg.cpp
│ │ │ │ ├── ChatClientDlg.h
│ │ │ │ ├── ReadMe.txt
│ │ │ │ ├── res
│ │ │ │ │ ├── ChatClient.ico
│ │ │ │ │ └── ChatClient.rc2
│ │ │ │ ├── resource.h
│ │ │ │ ├── stdafx.cpp
│ │ │ │ ├── stdafx.h
│ │ │ │ └── targetver.h
│ │ │ ├── ChatClient.sln
│ │ │ └── ChatClient.suo
│ │ └── ChatServer
│ │ ├── ChatServer
│ │ │ ├── ChatServer.aps
│ │ │ ├── ChatServer.cpp
│ │ │ ├── ChatServer.h
│ │ │ ├── ChatServer.rc
│ │ │ ├── ChatServer.vcproj
│ │ │ ├── ChatServer.vcproj.1652229459BB4B2.zhouhejun.user
│ │ │ ├── ChatServerDlg.cpp
│ │ │ ├── ChatServerDlg.h
│ │ │ ├── ReadMe.txt
│ │ │ ├── res
│ │ │ │ ├── ChatServer.ico
│ │ │ │ └── ChatServer.rc2
│ │ │ ├── resource.h
│ │ │ ├── stdafx.cpp
│ │ │ ├── stdafx.h
│ │ │ └── targetver.h
│ │ ├── ChatServer.sln
│ │ └── ChatServer.suo
│ └── UDProcsComm
│ ├── UDProcsComm
│ │ ├── ReadMe.txt
│ │ ├── UDProcsComm.aps
│ │ ├── UDProcsComm.cpp
│ │ ├── UDProcsComm.h
│ │ ├── UDProcsComm.rc
│ │ ├── UDProcsComm.vcproj
│ │ ├── UDProcsComm.vcproj.1652229459BB4B2.zhouhejun.user
│ │ ├── UDProcsCommDlg.cpp
│ │ ├── UDProcsCommDlg.h
│ │ ├── res
│ │ │ ├── UDProcsComm.ico
│ │ │ └── UDProcsComm.rc2
│ │ ├── resource.h
│ │ ├── stdafx.cpp
│ │ ├── stdafx.h
│ │ └── targetver.h
│ ├── UDProcsComm.sln
│ └── UDProcsComm.suo
├── 第8章 P2P编程
│ └── ptopTalker
│ ├── P2PTalker
│ │ ├── MyMsg.h
│ │ ├── P2PTalker.aps
│ │ ├── P2PTalker.cpp
│ │ ├── P2PTalker.h
│ │ ├── P2PTalker.rc
│ │ ├── P2PTalker.vcproj
│ │ ├── P2PTalker.vcproj.1652229459BB4B2.zhouhejun.user
│ │ ├── P2PTalkerDlg.cpp
│ │ ├── P2PTalkerDlg.h
│ │ ├── ReadMe.txt
│ │ ├── res
│ │ │ ├── P2PTalker.ico
│ │ │ └── P2PTalker.rc2
│ │ ├── resource.h
│ │ ├── rgstdUsr.h
│ │ ├── stdafx.cpp
│ │ ├── stdafx.h
│ │ └── targetver.h
│ ├── P2PTalker.sln
│ └── P2PTalker.suo
└── 第9章 HTTP编程:Web服务器的开发
└── htpSrver
├── htpSrver
│ ├── HttpProtocol.cpp
│ ├── HttpProtocol.h
│ ├── ReadMe.txt
│ ├── htpSrver.aps
│ ├── htpSrver.cpp
│ ├── htpSrver.h
│ ├── htpSrver.rc
│ ├── htpSrver.vcproj
│ ├── htpSrver.vcproj.1652229459BB4B2.zhouhejun.user
│ ├── htpSrverDlg.cpp
│ ├── htpSrverDlg.h
│ ├── res
│ │ ├── htpSrver.ico
│ │ └── htpSrver.rc2
│ ├── resource.h
│ ├── stdafx.cpp
│ ├── stdafx.h
│ └── targetver.h
├── htpSrver.sln
└── htpSrver.suo
83 directories, 431 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论