计算机网络
micklongen
micklongen
展开
-
序言
在学习windows网络编程的过程中,将一些代码整理出来,以便以后能够比较好的回顾。放在网上,希望跟大家一起交流。 windows Socket编程模型,客户端的代码是公用的,他们之间的差别,主要体现在服务端。 仅仅是为了实验而写的代码,很粗糙,不适合在实际的环境下运作。 版权声明: 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。 ...原创 2011-02-02 14:04:00 · 708 阅读 · 0 评论 -
Windows Socket I/O模型之 Select模式
# include < winsock2. h># include < ws2tcpip. h># include "resolve.h"# include "public.h"typedef SINGLE_LIST_HEADER BuffHeader;typedef SINGLE_LIST BuffObj;typedef DOUBLE_LIST_HEADER SockOb...原创 2011-02-02 14:08:00 · 632 阅读 · 0 评论 -
Windows Socket I/O模型之 WSAAsyncSelect模式
# include < winsock2. h># include < ws2tcpip. h># include "public.h"# include "resolve.h"typedef SINGLE_LIST_HEADER BuffHeader;typedef SINGLE_LIST BuffObj;typedef DOUBLE_LIST_HEADER SockOb...原创 2011-02-02 14:13:00 · 591 阅读 · 0 评论 -
Windows Socket I/O模型之 WSAEventSelect模式
# include < winsock2. h> # include < ws2tcpip. h> # include "public.h" # include "resolve.h" typedef SINGLE_LIST_HEADER BuffHeader; typedef SINGLE_LIST BuffObj; typedef SINGLE...原创 2011-02-02 14:16:00 · 981 阅读 · 0 评论 -
Windows Socket I/O模型之 阻塞模式
# include < winsock2. h># include < ws2tcpip. h># include "resolve.h"# include "public.h"typedef SINGLE_LIST_HEADER BuffHeader;typedef struct _CONNECTION_OBJ{ SOCKET s; // Client socke...原创 2011-02-02 14:06:00 · 673 阅读 · 0 评论 -
Windows Socket I/O模型之 重叠I/O事件通知模式
# include < winsock2. h> # include < ws2tcpip. h> # include < mswsock. h> # include < windows. h> # include "resolve.h" # include "public.h" typedef SINGLE_LIST_HE...原创 2011-02-02 14:20:00 · 800 阅读 · 0 评论 -
Windows Socket I/O模型之 I/O完成端口
# include < winsock2. h> # include < ws2tcpip. h> # include < mswsock. h> # include < windows. h> # include "resolve.h" # include "public.h" # define DEFAULT_OVERL...原创 2011-02-02 14:23:00 · 740 阅读 · 0 评论