C#基于TCP、UDP协议的网络通讯实现(unity)

1、TCP协议:服务器 TCP协议是面向有链接的,因此服务器要与客户端创建链接socket 服务器端:ui using System; using System.Net.Sockets; using System.Net; using System.Text; public static void Main(string[] args){ //建立服务器 Socket server
相关文章
相关标签/搜索