首页 网络技术 网络基础     /    TCP/IP网络程序设计-多人聊天系统

TCP/IP网络程序设计-多人聊天系统

上传者: youhimer | 上传时间:2023/11/24 9:12:40 | 文件大小:178KB | 文件类型:rar
TCP/IP网络程序设计-多人聊天系统
使用面向连接的套接字编程,通过图2来表示其时序。
套接字工作过程如下:服务器首先启动,通过调用socket()建立一个套接字,然后调用bind()将该套接字和本地网络地址联系在一起,再调用listen()使套接字做好侦听的准备,并规定它的请求队列的长度,之后就调用accept()来接收连接。
客户在建立套接字后就可调用connect()和服务器建立连接,连接一旦建立,客户机和服务器之间就可以通过调用read()和write()来发送和接收数据。
最后,待数据传送结束后,双方调用close()关闭套接字。
本软件ID:2103911

文件下载

资源详情

[{"title":"(39个子文件178KB)TCP/IP网络程序设计-多人聊天系统","children":[{"title":"TCPIP网络程序设计-多人聊天系统","children":[{"title":"TCP聊天客户端","children":[{"title":"CSocketcli.clw <span style='color:#111;'>1.37KB</span>","children":null,"spread":false},{"title":"CSocketcli.plg <span style='color:#111;'>760B</span>","children":null,"spread":false},{"title":"res","children":[{"title":"CSocketcli.rc2 <span style='color:#111;'>402B</span>","children":null,"spread":false},{"title":"CSocketcli.ico <span style='color:#111;'>1.05KB</span>","children":null,"spread":false}],"spread":true},{"title":"CSocketcli.aps <span style='color:#111;'>35.82KB</span>","children":null,"spread":false},{"title":"CSocketcli.ncb <span style='color:#111;'>97.00KB</span>","children":null,"spread":false},{"title":"CSocketcli.h <span style='color:#111;'>1.34KB</span>","children":null,"spread":false},{"title":"CSocketcli.dsp <span style='color:#111;'>4.17KB</span>","children":null,"spread":false},{"title":"CSocketcli.opt <span style='color:#111;'>60.50KB</span>","children":null,"spread":false},{"title":"CSocketcli.rc <span style='color:#111;'>6.21KB</span>","children":null,"spread":false},{"title":"CSocketcli.cpp <span style='color:#111;'>2.16KB</span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'>212B</span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'>963B</span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'>1.08KB</span>","children":null,"spread":false},{"title":"CSocketcliDlg.cpp <span style='color:#111;'>7.15KB</span>","children":null,"spread":false},{"title":"CSocketcli.dsw <span style='color:#111;'>543B</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"CSocketcli.exe <span style='color:#111;'>48.00KB</span>","children":null,"spread":false}],"spread":false},{"title":"CSocketcliDlg.h <span style='color:#111;'>1.63KB</span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'>3.57KB</span>","children":null,"spread":false}],"spread":false},{"title":"计算机网络编程实验报告yjj.doc <span style='color:#111;'>171.00KB</span>","children":null,"spread":false},{"title":"TCP聊天服务器端","children":[{"title":"CSocket.plg <span style='color:#111;'>735B</span>","children":null,"spread":false},{"title":"res","children":[{"title":"CSocket.ico <span style='color:#111;'>1.05KB</span>","children":null,"spread":false},{"title":"CSocket.rc2 <span style='color:#111;'>399B</span>","children":null,"spread":false}],"spread":true},{"title":"CSocket.ncb <span style='color:#111;'>113.00KB</span>","children":null,"spread":false},{"title":"CSocket.rc <span style='color:#111;'>5.84KB</span>","children":null,"spread":false},{"title":"CSocket.cpp <span style='color:#111;'>2.12KB</span>","children":null,"spread":false},{"title":"CSocket.opt <span style='color:#111;'>61.50KB</span>","children":null,"spread":false},{"title":"CSocket.aps <span style='color:#111;'>35.40KB</span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'>209B</span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'>822B</span>","children":null,"spread":false},{"title":"CSocket.dsp <span style='color:#111;'>4.12KB</span>","children":null,"spread":false},{"title":"CSocket.dsw <span style='color:#111;'>537B</span>","children":null,"spread":false},{"title":"CSocketDlg.h <span style='color:#111;'>1.55KB</span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'>1.08KB</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"CSocket.exe <span style='color:#111;'>48.00KB</span>","children":null,"spread":false}],"spread":false},{"title":"CSocket.clw <span style='color:#111;'>1.17KB</span>","children":null,"spread":false},{"title":"CSocket.h <span style='color:#111;'>1.30KB</span>","children":null,"spread":false},{"title":"CSocketDlg.cpp <span style='color:#111;'>7.14KB</span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'>3.51KB</span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

  • Xx123g:
    还可以,只是还需要做调整2018-01-31
  • 源代码13:
    很好,可以实现2014-07-03

免责申明

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