• PUDN用户
    了解作者
  • Visual C++
    开发工具
  • 169KB
    文件大小
  • rar
    文件格式
  • 1
    收藏次数
  • 10 积分
    下载积分
  • 4131
    下载次数
  • 2006-09-17 16:56
    上传日期
1.套接字编程原理 1.1 Client/server通信模型 1.2 Windows Sockets规范 1.3 套接字 1.3.1 套接字定义 1.3.2分类 1.3.3 套接字的作用 1.3.4端口与地址 1.3.5 套接口属性 2.基本的Windows Sockets API编程 2.1常用函数 2.2 TCP实例 2.3 UDP实例 2.4 Socket 通信阻塞的解决方法 3.MFC下的Socket编程的类 3.1 CAsyncSocket类 3.2 CSocket类 3.3 Windows Sockets:带存档的套接字的工作方式 3.4 流式套接字通信的操作顺序 3.5 使用 CAsyncSocket 类 3.6 从套接字类派生 3.7 套接字通知 3.8 一个使用CSocket类的网络通信实例 3.8.1 服务器端应用程序设计(ServerDemo) 3.8.2 客户端应用程序设计(项目名称ClientDemo) 4.套接字的托管实现 4.1 System::Net::Sockets 命名空间 4.2 实例:一个新邮件检查器
socket_program_guide.rar
  • www.pudn.com.txt
    218B
  • socket_program_guide.doc
    552.5KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/622b326e81ded46b7f2f204d/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/622b326e81ded46b7f2f204d/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">&#20351;&#29992;<span class="_ _0"> </span><span class="ff2 sc1">VC++</span>&#30340;&#32593;&#32476;&#32534;&#31243;&#24635;&#32467;</div><div class="t m0 x2 h4 y3 ff3 fs1 fc1 sc1 ls0 ws0">1<span class="ff1">&#65294;&#22871;&#25509;&#23383;&#32534;&#31243;&#21407;&#29702;</span></div><div class="t m0 x3 h4 y4 ff3 fs1 fc1 sc1 ls0 ws0">1.1 Client/server<span class="_ _1"> </span><span class="ff1">&#36890;&#20449;&#27169;&#22411;</span></div><div class="t m0 x3 h4 y5 ff3 fs1 fc1 sc1 ls0 ws0">1.2 W<span class="_ _2"></span>indows Sockets<span class="_ _1"> </span><span class="ff1">&#35268;&#33539;</span></div><div class="t m0 x3 h4 y6 ff3 fs1 fc1 sc1 ls0 ws0">1.3 <span class="ff1">&#22871;&#25509;&#23383;</span></div><div class="t m0 x4 h4 y7 ff3 fs1 fc1 sc1 ls0 ws0">1.3.1 <span class="ff1">&#22871;&#25509;&#23383;&#23450;&#20041;</span></div><div class="t m0 x4 h4 y8 ff3 fs1 fc1 sc1 ls0 ws0">1.3.2<span class="_ _1"> </span><span class="ff1">&#20998;&#31867;</span></div><div class="t m0 x4 h4 y9 ff3 fs1 fc1 sc1 ls0 ws0">1.3.3 <span class="ff1">&#22871;&#25509;&#23383;&#30340;&#20316;&#29992;</span></div><div class="t m0 x4 h4 ya ff3 fs1 fc1 sc1 ls0 ws0">1.3.4<span class="_ _1"> </span><span class="ff1">&#31471;&#21475;&#19982;&#22320;&#22336;</span></div><div class="t m0 x4 h4 yb ff3 fs1 fc1 sc1 ls0 ws0">1.3.5 <span class="ff1">&#22871;&#25509;&#21475;&#23646;&#24615;</span></div><div class="t m0 x2 h4 yc ff3 fs1 fc1 sc1 ls0 ws0">2<span class="ff1">&#65294;&#22522;&#26412;&#30340;<span class="_ _1"> </span></span>W<span class="_ _2"></span>indows Sockets <span class="_ _2"></span>API<span class="_ _1"> </span><span class="ff1">&#32534;&#31243;</span></div><div class="t m0 x3 h4 yd ff3 fs1 fc1 sc1 ls0 ws0">2.1<span class="_ _1"> </span><span class="ff1">&#24120;&#29992;&#20989;&#25968;</span></div><div class="t m0 x3 h4 ye ff3 fs1 fc1 sc1 ls0 ws0">2.2 TCP<span class="_ _3"> </span><span class="ff1">&#23454;&#20363;</span></div><div class="t m0 x3 h4 yf ff3 fs1 fc1 sc1 ls0 ws0">2.3 UDP<span class="_ _3"> </span><span class="ff1">&#23454;&#20363;</span></div><div class="t m0 x3 h4 y10 ff3 fs1 fc1 sc1 ls0 ws0">2.4 Socket <span class="ff1">&#36890;&#20449;&#38459;&#22622;&#30340;&#35299;&#20915;&#26041;&#27861;</span></div><div class="t m0 x2 h4 y11 ff3 fs1 fc1 sc1 ls0 ws0">3<span class="ff1">&#65294;</span>MFC<span class="_ _1"> </span><span class="ff1">&#19979;&#30340;<span class="_ _3"> </span></span>Socket<span class="_ _1"> </span><span class="ff1">&#32534;&#31243;&#30340;&#31867;</span></div><div class="t m0 x3 h4 y12 ff3 fs1 fc1 sc1 ls0 ws0">3.1 CAsyncSocket<span class="_ _1"> </span><span class="ff1">&#31867;</span></div><div class="t m0 x3 h4 y13 ff3 fs1 fc1 sc1 ls0 ws0">3.2 CSocket<span class="_ _1"> </span><span class="ff1">&#31867;</span></div><div class="t m0 x3 h4 y14 ff3 fs1 fc1 sc1 ls0 ws0">3.3 W<span class="_ _2"></span>indows Sockets<span class="ff1">&#65306;&#24102;&#23384;&#26723;&#30340;&#22871;&#25509;&#23383;&#30340;&#24037;&#20316;&#26041;&#24335;</span></div><div class="t m0 x3 h4 y15 ff3 fs1 fc1 sc1 ls0 ws0">3.4 <span class="ff1">&#27969;&#24335;&#22871;&#25509;&#23383;&#36890;&#20449;&#30340;&#25805;&#20316;&#39034;&#24207;</span></div><div class="t m0 x3 h4 y16 ff3 fs1 fc1 sc1 ls0 ws0">3.5 <span class="ff1">&#20351;&#29992;</span> CAsyncSocket <span class="ff1">&#31867;</span></div><div class="t m0 x3 h4 y17 ff3 fs1 fc1 sc1 ls0 ws0">3.6 <span class="ff1">&#20174;&#22871;&#25509;&#23383;&#31867;&#27966;&#29983;</span></div><div class="t m0 x3 h4 y18 ff3 fs1 fc1 sc1 ls0 ws0">3.7 <span class="ff1">&#22871;&#25509;&#23383;&#36890;&#30693;</span></div><div class="t m0 x3 h4 y19 ff3 fs1 fc1 sc1 ls0 ws0">3.8 <span class="ff1">&#19968;&#20010;&#20351;&#29992;<span class="_ _3"> </span></span>CSocket<span class="_"> </span><span class="ff1">&#31867;&#30340;&#32593;&#32476;&#36890;&#20449;&#23454;&#20363;</span></div><div class="t m0 x4 h4 y1a ff3 fs1 fc1 sc1 ls0 ws0">3.8.1 <span class="ff1">&#26381;&#21153;&#22120;&#31471;&#24212;&#29992;&#31243;&#24207;&#35774;&#35745;</span>(ServerDemo)</div><div class="t m0 x4 h4 y1b ff3 fs1 fc1 sc1 ls0 ws0">3.8.2 <span class="ff1">&#23458;&#25143;&#31471;&#24212;&#29992;&#31243;&#24207;&#35774;&#35745;</span>(<span class="ff1">&#39033;&#30446;&#21517;&#31216;<span class="_ _1"> </span></span>ClientDemo)</div><div class="t m0 x2 h4 y1c ff3 fs1 fc1 sc1 ls0 ws0">4<span class="ff1">&#65294;&#22871;&#25509;&#23383;&#30340;&#25176;&#31649;&#23454;&#29616;</span></div><div class="t m0 x3 h4 y1d ff3 fs1 fc1 sc1 ls0 ws0">4.1 System<span class="ff1">&#65306;&#65306;<span class="_ _4"> </span></span>Net<span class="ff1">&#65306;&#65306;<span class="_ _4"> </span></span>Sockets <span class="ff1">&#21629;&#21517;&#31354;&#38388;</span></div><div class="t m0 x3 h4 y1e ff3 fs1 fc1 sc1 ls0 ws0">4.2 <span class="ff1">&#23454;&#20363;&#65306;&#19968;&#20010;&#26032;&#37038;&#20214;&#26816;&#26597;&#22120;</span></div><div class="t m0 x2 h3 y1f ff2 fs0 fc0 sc1 ls0 ws0">1<span class="ff1 sc0">&#65294;&#22871;&#25509;&#23383;&#32534;&#31243;&#21407;&#29702;</span></div><div class="t m0 x4 h4 y20 ff1 fs1 fc0 sc1 ls0 ws0">&#19968;&#20010;<span class="_ _5"></span>&#23436;&#25972;<span class="_ _5"></span>&#30340;&#32593;<span class="_ _5"></span>&#38388;&#36890;<span class="_ _5"></span>&#20449;&#36827;<span class="_ _5"></span>&#31243;&#38656;<span class="_ _5"></span>&#35201;&#30001;<span class="_ _5"></span>&#20004;&#20010;<span class="_ _5"></span>&#36827;&#31243;<span class="_ _5"></span>&#32452;&#25104;<span class="_ _5"></span>&#65292;&#24182;<span class="_ _5"></span>&#19988;&#21482;<span class="_ _5"></span>&#33021;&#29992;<span class="_ _5"></span>&#21516;&#19968;<span class="_ _5"></span>&#31181;&#39640;<span class="_ _5"></span>&#23618;&#21327;<span class="_ _5"></span>&#35758;&#12290;<span class="_ _5"></span>&#20063;&#23601;<span class="_ _5"></span>&#26159;</div><div class="t m0 x2 h4 y21 ff1 fs1 fc0 sc1 ls0 ws0">&#35828;&#65292;&#19981;&#21487;&#33021;<span class="_ _5"></span>&#36890;&#20449;&#30340;&#19968;&#31471;&#29992;<span class="_ _0"> </span><span class="ff3">TCP</span>&#65292;&#32780;&#21478;<span class="_ _5"></span>&#19968;&#31471;&#29992;<span class="_ _6"> </span><span class="ff3">UDP</span>&#12290;&#19968;&#20010;&#23436;&#25972;<span class="_ _5"></span>&#30340;&#32593;&#32476;&#20449;&#38656;&#35201;<span class="_ _5"></span>&#19968;&#20010;&#20116;&#20803;&#32452;&#26469;<span class="_ _5"></span>&#26631;</div><div class="t m0 x2 h4 y22 ff1 fs1 fc0 sc1 ls0 ws0">&#35782;&#65306;&#21327;&#35758;&#12289;&#26412;&#22320;&#22320;&#22336;&#12289;&#26412;&#22320;&#31471;&#21475;&#21495;&#12289;&#36828;&#31471;&#22320;&#22336;&#12289;&#36828;&#31471;&#31471;&#21475;&#21495;&#12290;</div><div class="t m0 x2 h4 y23 ff2 fs1 fc0 sc1 ls0 ws0">1.1 Client/server<span class="_ _1"> </span><span class="ff1 sc0">&#36890;&#20449;&#27169;&#22411;</span></div><div class="t m0 x4 h4 y24 ff1 fs1 fc0 sc1 ls0 ws0">&#22312;&#23458;&#25143;<span class="ff3">/</span>&#26381;&#21153;&#22120;&#27169;&#24335;&#20013;&#25105;&#20204;&#23558;&#35831;&#27714;&#26381;&#21153;&#30340;&#19968;&#26041;&#31216;&#20026;&#23458;&#25143;&#65288;<span class="ff3">client</span>&#65289;&#65292;&#23558;&#25552;&#20379;&#26576;&#31181;&#26381;&#21153;&#30340;&#19968;</div><div class="t m0 x2 h4 y25 ff1 fs1 fc0 sc1 ls0 ws0">&#26041;&#31216;&#20026;&#26381;&#21153;&#22120;&#65288;<span class="ff3">server</span>&#65289;&#12290;</div><div class="t m0 x4 h4 y26 ff1 fs1 fc0 sc1 ls0 ws0">&#19968;&#20010;<span class="_ _5"></span>&#26381;&#21153;<span class="_ _5"></span>&#31243;&#24207;<span class="_ _5"></span>&#36890;&#24120;<span class="_ _5"></span>&#22312;&#19968;<span class="_ _5"></span>&#20010;&#20247;<span class="_ _5"></span>&#25152;&#21608;<span class="_ _5"></span>&#30693;&#30340;<span class="_ _5"></span>&#22320;&#22336;<span class="_ _5"></span>&#30417;&#21548;<span class="_ _5"></span>&#23545;&#26381;<span class="_ _5"></span>&#21153;&#30340;<span class="_ _5"></span>&#35831;&#27714;<span class="_ _5"></span>&#65292;&#20063;<span class="_ _5"></span>&#23601;&#26159;<span class="_ _5"></span>&#35828;&#26381;<span class="_ _5"></span>&#21153;&#36827;<span class="_ _5"></span>&#31243;&#19968;<span class="_ _5"></span>&#30452;</div><div class="t m0 x2 h4 y27 ff1 fs1 fc0 sc1 ls0 ws0">&#22788;&#20110;<span class="_ _5"></span>&#20241;&#30496;<span class="_ _5"></span>&#29366;&#24577;<span class="_ _5"></span>&#65292;&#30452;<span class="_ _5"></span>&#21040;&#19968;<span class="_ _5"></span>&#20010;&#23458;<span class="_ _5"></span>&#25143;&#23545;<span class="_ _5"></span>&#36825;&#20010;<span class="_ _5"></span>&#26381;&#21153;<span class="_ _5"></span>&#30340;&#22320;<span class="_ _5"></span>&#22336;&#25552;<span class="_ _5"></span>&#20986;&#20102;<span class="_ _5"></span>&#36830;&#25509;<span class="_ _5"></span>&#35831;&#27714;<span class="_ _5"></span>&#12290;&#22312;<span class="_ _5"></span>&#36825;&#20010;<span class="_ _5"></span>&#26102;&#21051;<span class="_ _5"></span>&#65292;&#26381;<span class="_ _5"></span>&#21153;&#31243;<span class="_ _5"></span>&#24207;</div><div class="t m0 x2 h4 y28 ff1 fs1 fc0 sc1 ls0 ws0">&#34987;&#8220;<span class="_ _5"></span>&#24778;<span class="_ _5"></span>&#37266;&#8221;<span class="_ _5"></span>&#24182;<span class="_ _5"></span>&#19988;&#20026;<span class="_ _5"></span>&#23458;<span class="_ _5"></span>&#25143;&#25552;<span class="_ _5"></span>&#20379;<span class="_ _5"></span>&#26381;&#21153;<span class="_ _7"></span>&#8212;&#23545;<span class="_ _5"></span>&#23458;<span class="_ _5"></span>&#25143;&#30340;<span class="_ _5"></span>&#35831;<span class="_ _5"></span>&#27714;&#20316;<span class="_ _5"></span>&#20986;<span class="_ _5"></span>&#36866;&#24403;<span class="_ _5"></span>&#30340;<span class="_ _5"></span>&#21453;&#24212;<span class="_ _5"></span>&#12290;<span class="_ _5"></span>&#34429;&#28982;<span class="_ _5"></span>&#22522;<span class="_ _5"></span>&#20110;&#36830;<span class="_ _5"></span>&#25509;<span class="_ _5"></span>&#30340;&#26381;<span class="_ _5"></span>&#21153;<span class="_ _5"></span>&#26159;&#35774;</div><div class="t m0 x2 h4 y29 ff1 fs1 fc0 sc1 ls0 ws0">&#35745;&#23458;&#25143;&#26426;<span class="ff3">/</span>&#26381;&#21153;&#22120;&#24212;&#29992;&#31243;&#24207;&#26102;&#30340;&#26631;&#20934;&#65292;&#20294;&#26377;&#20123;&#26381;&#21153;&#20063;&#26159;&#21487;&#20197;&#36890;&#36807;&#26080;&#36830;&#25509;&#30340;&#25509;&#21475;&#25552;&#20379;&#30340;&#12290;</div><div class="t m0 x4 h4 y2a ff1 fs1 fc0 sc1 ls0 ws0">&#23458;&#25143;&#26426;<span class="ff3">/</span>&#26381;&#21153;&#22120;&#30340;&#35831;&#27714;<span class="ff3">/</span>&#21709;&#24212;&#36807;&#31243;&#31034;&#24847;&#22270;&#22914;&#19979;&#25152;&#31034;&#12290;</div></div></div><div class="pi" data-data='{"ctm":[1.611850,0.000000,0.000000,1.611850,0.000000,0.000000]}'></div></div> </body> </html>
评论
  • PUDN用户 2011-09-23 13:59:30
    一般,勉强可用
  • PUDN用户 2011-09-23 13:50:52
    一般,勉强可用
  • PUDN用户 2010-07-15 15:57:16
    为什么我下不了啊?
相关推荐
  • Socket.zip
    提供1024位的连环AT24C01电可擦可编程 只读存储器(eepm)组织成128字的8位每个。该设备是 优化用于在许多工业和商业应用,低功率 和低电压操作是必要的。可以在空间的AT24C01储蓄 8针PDIP,8针MSOP,8针TSSOP,8针...
  • SECS E37.rar
    SECS E37.PDF,是专门用于MES之HSMS开发的协议文档。主要是定义了TCP/UDP等socket网络编程通讯的固定格式。对于MES系统开发者来说,是编码过程中参照和核对格式的必备手册。
  • nucleus:一个基于 Akka IO 的轻量级React式 RPC 类系统
    它的协议很容易在其他编程语言中实现,并且松散地建模为规范。 它使用 Erlang 的来序列化和反序列化要通过线路发送的内容。 内部工作被构建为尽可能类型安全,而外部 API 使其易于在其他(动态)语言中使用。 作为...
  • zxing.java源码解析-ToolStack:IDE;常用三方工具汇总
    zxing.java源码解析 杂货铺 资源声明:版权所有,允许合法合理传播 不断完善更新,欢迎各路豪杰补充 #Coding Monkey #JDK 版本号 Windows Mac OSX 1.8 u77 1.7 u80 #Gradle 版本 URL gradle-2.12-all.zip ...Zelez
  • leetcode打不开-blog:学习……学习……学习
    leetcode打不开博客 -- 技术知识 非常好读 找出什么是静态内存以及类和函数的存储位置 实习经历 力码 面向对象编程 ...如何检查网络套接字/网络堆栈/tcp udp 服务: 如何检查给定进程的 CPU 使用率:ps a
  • 8051-PROGRAMMER-LINUX-开源
    它是在Linux上对基于ISP的8051控制器(89SXX)进行编程的软件。 该软件对从命令行输入的十六进制文件进行解码,然后使用PC的并行端口将其发送到控制器的闪存。硬件连接非常少。
  • k150 PIC编程
    K149/150--PIC编程器,是入门级的PIC编程器,很适合自己制作。其支持的器件高达100多种,支持10F/12C/12F/16F/18F系列的PIC单片机的烧写。
  • pubnub-esp8266:基本的Hello World示例
    但是,该模块实际上是具有嵌入式TCP堆栈的可编程32位MCU,如果使用TCP,则使用PubNub。 稍加努力,我们就可以编写自己的固件来创建独立的,支持WiFi的设备! ##项目概述对于此项目,我使用的是小型ESP-01,但是...
  • java注册网络聊天室源码-web-socket-lab:使用Tyrus的聊天服务器,JSR356的参考实现
    定义客户端和服务器端点的编程方式和声明方式。 在这篇文章中,我将使用声明式的方式,通过注释。 我们可以监听的生命周期事件:打开/关闭会话、发送/接收消息等 消息编码器/解码器在客户端和服务器之间编组/解组...
  • 数字图像处理学:Visual C++实现_10990262.rar
    数字图像处理学:Visual C++实现 1数字图象处理导论 2光学基础与视觉系统 3对设备无关位图的访问 4图象的变换 5图象的增强 6图象复原 7图象重建 8图象分割 9图象纹理分析 10图象腐蚀与膨胀 11图象压缩编码 12图象模式识别