开发工具:Visual Studio、Unity
开发语言:C#
服务端(Server):
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Sockets;
using System.Net;
Namespace NetworkServer{
class Program{
static void Main(string[] args){
//创造一个socket对象
//寻址方式 套接字类型 协议方式
Socket TcpSocket = new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);