![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
unity网络通信
unity工具人
林深时见鹿 海蓝时见鲸
展开
-
tcp发送图片流
发送端:using UnityEngine;using System.Collections;using System.Net;using System.Net.Sockets;using System.IO;using System;public class SendPhoto : MonoBehaviour{ private Socket socket = null; private IPEndPoint endPoint = null; // Use t原创 2021-03-31 23:33:19 · 648 阅读 · 5 评论 -
unity使用Tcp/UDP协议网络通信实现(Socket简单应用)
服务器端:1.打开vs,创建一个c#的控制台应用程序代码如下using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Net.Sockets;using System.Net;namespace Socket服务器端{ class Program { static原创 2020-05-22 22:14:39 · 4605 阅读 · 2 评论