随笔分类 -  网络通信

Socket简单学习之UDP通信
摘要:UDP不可靠通信,不建立连接,只发送一次数据,不管对方是否接收 服务器端 1:创建socket,将通信设置为内网,udp通信 2:绑定服务器的端口和ip 3:ReceriverForm(date ref point)接收二进制数据,用point 记录发送数据过来的端口和ip 4:SentTo(dat 阅读全文
posted @ 2019-08-26 15:17 时光易逝-珍惜 阅读(655) 评论(0) 推荐(0)
Socket简单学习之Tcp通信
摘要:Socket网络通信的简单学习 建立Tcp通信 using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Te 阅读全文
posted @ 2019-08-25 16:57 时光易逝-珍惜 阅读(331) 评论(0) 推荐(0)