c++网络编程
文章平均质量分 80
逍遥游走
这个作者很懒,什么都没留下…
展开
-
初学c++网络编程总结(一)
消息响应函数: 消息响应函数就是收到某些指定消息的时候,做出某些动作的函数,也叫消息处理函数。以MFC为例,MFC为对话框和控件等定义了诸多消息,对话框和控件等进行操作时会触发消息,这些消息最终由消息处理函数处理。比如点击按钮时就会产生BN_CLICKED消息,修改编辑框内容时会产生EN_CHANGE消息等。 回调函数: 回调函数就是一个通过函数指针调用的函数。如果你把函数的指针(地原创 2015-11-15 20:56:24 · 763 阅读 · 0 评论 -
MFC程序引导过程(二)
// 333.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "333.h" #include "333Dlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[]原创 2015-11-20 21:02:23 · 403 阅读 · 0 评论 -
UDP_socket通信(connect less)
UDP SERVER // UDP通信_SERVER.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include #pragma comment(lib,"WS2_32.LIB") using namespace std; int _tmain(int argc, _TCHAR* argv[]) { WSADATA wsada原创 2015-11-28 12:39:36 · 478 阅读 · 0 评论 -
TCP SOCKET服务器|客户端简单实现
// Windows_TCP_socket_Sever.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include #pragma comment (lib,"Ws2_32.lib") using namespace std; int _tmain(int argc, _TCHAR* argv[]) { //初始化Ws2_32.li原创 2015-11-28 10:49:50 · 466 阅读 · 0 评论