1 / 37
文档名称:

socket网络编程.pptx

格式:pptx   页数:37页
下载后只包含 1 个 PPTX 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

socket网络编程.pptx

上传人:yzhlya 2016/7/14 文件大小:0 KB

下载得到文件列表

socket网络编程.pptx

相关文档

文档介绍

文档介绍:Socket 网络编程大纲? TCP/UDP ? Socket ? HTTP ? Unix IO 模型 TCP-UDP 对比 UDP ? User Datagram Protocol TCP ? Transmission Control Protocol TCP ——连接建立? Before a client attempts to connect with a server, the server must first bind to and listen at a port to open it up for connections: this is called a passive open. Once the passive open is established, a client may initiate an active open .– SYN : The active open is performed by the client sending a SYN to the server. The client sets the segment's sequence number to a random value A. – SYN-ACK : In response, the server replies with a SYN-ACK. The acknowledgment number is set to one more than the received sequence number (A + 1), and the sequence number that the server chooses for the packet is another random number, B. – ACK : Finally, the client sends an ACK back to the server. The sequence number is set to the received acknowledgement value . A + 1, and the acknowledgement number is set to one more than the received sequence number . B + 1. TCP ——连接关闭? The connection termination phase uses a four-way handshake, with each side of the connection terminating independently . ? When an endpoint wishes to stop its half of the connection, it transmits a FIN packet, which the other end acknowledges with an ACK . ? Therefore, a typical tear-down requires a pair of FIN and ACK segments from each TCP endpoint .? After both FIN/ACK exchanges are concluded, the side which sent the first FIN before receiving one waits for a timeout before finally closing the connection, during which time the local port is unavailable for new connections ; this prevents confusion due to delayed packets being delivered during subsequent connections. TCP ——连接关闭 TCP ——整个过程 TCP —— netstat ? LISTEN ?(server) represents waiting for a connection request from any remote TCP and port. ? SYN-SENT ?(client) represents waiting for a matching connection request after having sent a connection request. ? SYN-RECEIVED ?(server) represents waitin

最近更新

安徽省池州市事业单位招聘考试(职业能力倾向.. 147页

安徽省阜阳市事业单位招聘考试(职业能力倾向.. 147页

山东省烟台市事业单位招聘考试(职业能力倾向.. 146页

广东省惠州市选调生考试(行政职业能力测验).. 146页

广西省南宁市选调生考试(行政职业能力测验).. 149页

江西省吉安市事业单位招聘考试(职业能力倾向.. 149页

江西省赣州市事业单位招聘考试(职业能力倾向.. 148页

浙江省温州市事业单位招聘考试(职业能力倾向.. 146页

深圳市水务局2024年职员选聘及历年高频难、易.. 59页

甘肃省酒泉地区选调生考试(行政职业能力测验.. 147页

福建省漳州市中级人民法院2024年招聘人员历年.. 58页

辽宁省大连市事业单位招聘考试(职业能力倾向.. 147页

黑龙江省大兴安岭地区事业单位招聘考试(职业.. 148页

黑龙江省黑河市事业单位招聘考试(职业能力倾.. 147页

2020医院感染管理试题完整版含答案多选题(三).. 31页

全国计算机等级考试一级B模拟试题及答案 15页

城市轨道车辆复习题及参考答案 19页

微型四旋翼直升机控制系统设计 7页

湍流与耗散结构理论 7页

手机实体店推广方案 27页

战马校园推广策划方案 33页

店铺推广考核方案参考 27页

工业方案推广 27页

老师毕业句子经典语录63条 7页

小熊游戏测评活动方案 35页

宣传推广经费保障方案 27页

学校公众号推广方案 27页

京东考试答案 12页

三伏贴活动方案 6页

最新糖尿病的诊疗规范 6页