客户端类(和服务器放到一起)

发布时间 2023-03-27 20:02:09作者: 天分丶张三

using System;
using System.Net;
using System.Net.Sockets;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Google.Protobuf;
using MyGame;

namespace FWQ1
{
class Client
{
//需要一个通讯类
public Socket m_socket;
//记录IP和端口
public string m_strIP;
//缓存
public byte[] m_data = new byte[1024];
//流
public byte[] m_stream = new byte[0];
//玩家信息
public Player m_player;
}
}