积极答复者
封装两个Socket通信类,第一个是基础SOCKET类,一个是网络通信类,求建议

问题
答案
-
Julian_Xiang 你好!
我建议你参考下面关于socket编程的相关链接,希望你能从中找到有帮助的信息。
Server Client Sockets: http://www.codeproject.com/Articles/4016/Server-Client-Sockets.
A reusable, high performance, socket server class - Part 1: http://www.codeproject.com/Articles/2336/A-reusable-high-performance-socket-server-class-Pa.Multi-threaded Client/Server Socket Class: http://www.codeproject.com/Articles/2477/Multi-threaded-Client-Server-Socket-Class.
Asynchronous socket communication: http://www.codeproject.com/Articles/1608/Asynchronous-socket-communication.
Programming Windows TCP Sockets in C++ for the Beginner: http://www.codeproject.com/Articles/13071/Programming-Windows-TCP-Sockets-in-C-for-the-Begin.祝你好运!
Helen Zhao [MSFT]
MSDN Community Support | Feedback to us
- 已标记为答案 Helen Zhao 2012年4月23日 2:14
- 取消答案标记 Julian_Xiang 2012年5月7日 3:04
- 已标记为答案 Julian_Xiang 2012年5月7日 3:04
- 取消答案标记 Julian_Xiang 2012年5月7日 3:04
- 已标记为答案 Julian_Xiang 2012年5月7日 3:08
-
你不是已经说的很清楚了
SOCKET的类只负责通信功能的实现
数据管理类只负责通信协议的解析和封装
新浪微博http://weibo.com/xianglitian,欢迎围观
- 已标记为答案 Julian_Xiang 2012年5月7日 3:04
-
需要注意socket的数量和同步问题。你可以看一下boost::asio
麻烦把正确答案设为解答。
- 已标记为答案 Julian_Xiang 2012年5月7日 3:04
-
通讯的IO和数据的处理从逻辑上分开
Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.
- 已标记为答案 Julian_Xiang 2012年5月7日 3:04
全部回复
-
Julian_Xiang 你好!
我建议你参考下面关于socket编程的相关链接,希望你能从中找到有帮助的信息。
Server Client Sockets: http://www.codeproject.com/Articles/4016/Server-Client-Sockets.
A reusable, high performance, socket server class - Part 1: http://www.codeproject.com/Articles/2336/A-reusable-high-performance-socket-server-class-Pa.Multi-threaded Client/Server Socket Class: http://www.codeproject.com/Articles/2477/Multi-threaded-Client-Server-Socket-Class.
Asynchronous socket communication: http://www.codeproject.com/Articles/1608/Asynchronous-socket-communication.
Programming Windows TCP Sockets in C++ for the Beginner: http://www.codeproject.com/Articles/13071/Programming-Windows-TCP-Sockets-in-C-for-the-Begin.祝你好运!
Helen Zhao [MSFT]
MSDN Community Support | Feedback to us
- 已标记为答案 Helen Zhao 2012年4月23日 2:14
- 取消答案标记 Julian_Xiang 2012年5月7日 3:04
- 已标记为答案 Julian_Xiang 2012年5月7日 3:04
- 取消答案标记 Julian_Xiang 2012年5月7日 3:04
- 已标记为答案 Julian_Xiang 2012年5月7日 3:08
-
你不是已经说的很清楚了
SOCKET的类只负责通信功能的实现
数据管理类只负责通信协议的解析和封装
新浪微博http://weibo.com/xianglitian,欢迎围观
- 已标记为答案 Julian_Xiang 2012年5月7日 3:04
-
需要注意socket的数量和同步问题。你可以看一下boost::asio
麻烦把正确答案设为解答。
- 已标记为答案 Julian_Xiang 2012年5月7日 3:04
-
通讯的IO和数据的处理从逻辑上分开
Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.
- 已标记为答案 Julian_Xiang 2012年5月7日 3:04