VC++ 6.0 TCP 通讯实例(服务器端和客户端)

上传者: zeliangzhang19801124 | 上传时间: 2019-12-21 22:17:16 | 文件大小: 5.22MB | 文件类型: rar
服务器端流程: 1、创建套接字(socket)。 2、将套接字绑定到一个本地地址和端口上(bind)。 3、将套接字设为监听模式,准备接收客户请求(listen)。 4、等待客户请求到来;当请求到来后,接受连接请求,返回一个新的对应于此次连接的套接字(accept)。 5、用返回的套接字和客户端进行通信(send/recv)。(在线程中进行) 6、返回,等待另一客户请求。 7、关闭套接字。 客户端流程: 1、创建套接字(socket)。 2、向服务器发出连接请求(connect)。 3、和服务器端进行通信(send/recv)。 4、关闭套接字。

文件下载

资源详情

[{"title":"( 62 个子文件 5.22MB ) VC++ 6.0 TCP 通讯实例(服务器端和客户端)","children":[{"title":"TCPServer","children":[{"title":"TCPServer.opt <span style='color:#111;'> 48.50KB </span>","children":null,"spread":false},{"title":"TCPServerDlg.h <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"TCPServer.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"TCPServer.rc2 <span style='color:#111;'> 401B </span>","children":null,"spread":false}],"spread":true},{"title":"TCPServer.aps <span style='color:#111;'> 20.64KB </span>","children":null,"spread":false},{"title":"TCPServer.cpp <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false},{"title":"TCPServer.dsp <span style='color:#111;'> 4.19KB </span>","children":null,"spread":false},{"title":"TCPServer.clw <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"TCPServerDlg.cpp <span style='color:#111;'> 9.65KB </span>","children":null,"spread":false},{"title":"TCPServer.h <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"TCPServer.rc <span style='color:#111;'> 5.72KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 211B </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 871B </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"conf.txt <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"TCPServer.dsw <span style='color:#111;'> 541B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"TCPServerDlg.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"TCPServerDlg.obj <span style='color:#111;'> 35.21KB </span>","children":null,"spread":false},{"title":"TCPServer.ilk <span style='color:#111;'> 216.65KB </span>","children":null,"spread":false},{"title":"StdAfx.obj <span style='color:#111;'> 103.02KB </span>","children":null,"spread":false},{"title":"TCPServer.obj <span style='color:#111;'> 15.02KB </span>","children":null,"spread":false},{"title":"TCPServer.bsc <span style='color:#111;'> 3.04MB </span>","children":null,"spread":false},{"title":"TCPServer.exe <span style='color:#111;'> 112.05KB </span>","children":null,"spread":false},{"title":"TCPServer.res <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 201.00KB </span>","children":null,"spread":false},{"title":"TCPServer.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"StdAfx.sbr <span style='color:#111;'> 1.31MB </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 364.00KB </span>","children":null,"spread":false},{"title":"TCPServer.pch <span style='color:#111;'> 6.55MB </span>","children":null,"spread":false},{"title":"TCPServer.pdb <span style='color:#111;'> 281.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"TCPServer.plg <span style='color:#111;'> 252B </span>","children":null,"spread":false},{"title":"TCPServer.ncb <span style='color:#111;'> 57.00KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.55KB </span>","children":null,"spread":false}],"spread":false},{"title":"TCPClient","children":[{"title":"TCPClientDlg.cpp <span style='color:#111;'> 7.39KB </span>","children":null,"spread":false},{"title":"TCPClientDlg.h <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"TCPClient.rc2 <span style='color:#111;'> 401B </span>","children":null,"spread":false},{"title":"TCPClient.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"TCPClient.aps <span style='color:#111;'> 20.77KB </span>","children":null,"spread":false},{"title":"TCPClient.dsw <span style='color:#111;'> 541B </span>","children":null,"spread":false},{"title":"TCPClient.h <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"TCPClient.ncb <span style='color:#111;'> 49.00KB </span>","children":null,"spread":false},{"title":"TCPClient.opt <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 211B </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 917B </span>","children":null,"spread":false},{"title":"TCPClient.plg <span style='color:#111;'> 252B </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"conf.txt <span style='color:#111;'> 14B </span>","children":null,"spread":false},{"title":"TCPClient.dsp <span style='color:#111;'> 4.19KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"TCPClient.exe <span style='color:#111;'> 108.05KB </span>","children":null,"spread":false},{"title":"StdAfx.obj <span style='color:#111;'> 103.00KB </span>","children":null,"spread":false},{"title":"TCPClient.ilk <span style='color:#111;'> 210.60KB </span>","children":null,"spread":false},{"title":"TCPClient.res <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false},{"title":"TCPClient.pch <span style='color:#111;'> 5.24MB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 209.00KB </span>","children":null,"spread":false},{"title":"TCPClient.obj <span style='color:#111;'> 15.00KB </span>","children":null,"spread":false},{"title":"TCPClientDlg.obj <span style='color:#111;'> 33.10KB </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 364.00KB </span>","children":null,"spread":false},{"title":"TCPClient.pdb <span style='color:#111;'> 281.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"TCPClient.rc <span style='color:#111;'> 5.69KB </span>","children":null,"spread":false},{"title":"TCPClient.cpp <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false},{"title":"TCPClient.clw <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.55KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • 幸福的家S :
    挺不错的,很详细,能用,可以参考
    2021-01-14
  • ssliuxu :
    真的很不错,再来下载一次
    2019-03-19
  • njusttianlong :
    还可以,c++6.0比较老了,都忘了怎么用了,最近要改一个老工程,正好用这一段
    2019-01-02
  • ypine :
    不错的资源谢谢楼主的分享!
    2018-08-22
  • tk01tk01 :
    可以使用,不错
    2018-08-01

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明