• 大小: 52KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-10
  • 语言: 其他
  • 标签: sever  

资源简介

1.PESocket文件是网络连接核心代码 2.Example/ConsoleProjects 里面包含服务端 ,前端 控制台 连接案例 3.Example/UnityProjects unity 前端连接Example/ConsoleProjects 简单案例

资源截图

代码片段和文件信息

using PENet;
using Protocol;

public class ClientSession : PESession {
    protected override void OnConnected() {
        PETool.LogMsg(“Connect Server Succ.“);
    }

    protected override void OnReciveMsg(NetMsg msg) {
        PETool.LogMsg(“Server Response:“ + msg.text);
    }

    protected override void OnDisConnected() {
        PETool.LogMsg(“Server Shutdown.“);
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-12-25 09:32  PESocket-master\
     文件          66  2018-12-25 09:32  PESocket-master\.gitattributes
     文件          17  2018-12-25 09:32  PESocket-master\.gitignore
     目录           0  2018-12-25 09:32  PESocket-master\Example\
     目录           0  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\
     目录           0  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\ConsoleClient\
     文件         184  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\ConsoleClient\App.config
     文件         392  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\ConsoleClient\ClientSession.cs
     文件         764  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\ConsoleClient\ClientStart.cs
     文件        2410  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\ConsoleClient\ConsoleClient.csproj
     目录           0  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\ConsoleClient\Properties\
     文件        1306  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\ConsoleClient\Properties\AssemblyInfo.cs
     文件        2550  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\ConsoleProjects.sln
     目录           0  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\ConsoleServer\
     文件         184  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\ConsoleServer\App.config
     文件        2410  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\ConsoleServer\ConsoleServer.csproj
     目录           0  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\ConsoleServer\Properties\
     文件        1306  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\ConsoleServer\Properties\AssemblyInfo.cs
     文件         535  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\ConsoleServer\ServerSession.cs
     文件         584  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\ConsoleServer\ServerStart.cs
     目录           0  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\Protocol\
     文件         264  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\Protocol\NetMsg.cs
     目录           0  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\Protocol\Properties\
     文件        1287  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\Protocol\Properties\AssemblyInfo.cs
     文件        1985  2018-12-25 09:32  PESocket-master\Example\ConsoleProjects\Protocol\Protocol.csproj
     目录           0  2018-12-25 09:32  PESocket-master\Example\UnityProjects\
     文件         429  2018-12-25 09:32  PESocket-master\Example\UnityProjects\.gitignore
     目录           0  2018-12-25 09:32  PESocket-master\Example\UnityProjects\UnityClient\
     目录           0  2018-12-25 09:32  PESocket-master\Example\UnityProjects\UnityClient\Assets\
     文件         302  2018-12-25 09:32  PESocket-master\Example\UnityProjects\UnityClient\Assets\ClientSession.cs
     文件         284  2018-12-25 09:32  PESocket-master\Example\UnityProjects\UnityClient\Assets\ClientSession.cs.meta
............此处省略44个文件信息

评论

共有 条评论