一、开发环境

  1.Windows 10 企业版 64位

  2.Microsoft Visual Studio 2017 企业版

二、项目开始

  1.新建控制台程序,项目名称“BinarySuperSocket”,.net框架“4.7.1”

  SuperSocket框架中BinaryRequestInfo协议的使用

  2.安装SuperSocket的包,点击 “工具->NuGet包管理器->程序包管理器控制台”

  SuperSocket框架中BinaryRequestInfo协议的使用

   输入“install-package supersocket”,然后回车,提示安装成功,见下图

     SuperSocket框架中BinaryRequestInfo协议的使用

  SuperSocket框架中BinaryRequestInfo协议的使用

  输入“install-package supersocket.engine”,然后回车,提示安装成功,见下图

   SuperSocket框架中BinaryRequestInfo协议的使用

  SuperSocket框架中BinaryRequestInfo协议的使用

  3.新建BinarySession类

  

  
using SuperSocket.SocketBase;
using SuperSocket.SocketBase.Protocol;

namespace BinarySuperSocket
{
    public class BinarySession : AppSession<BinarySession, BinaryRequestInfo>
    {
    }
}
BinarySession类

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2021-10-08
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
猜你喜欢
  • 2022-02-13
  • 2021-05-12
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2022-12-23
相关资源
相似解决方案