Skip to content
This repository was archived by the owner on Jul 3, 2025. It is now read-only.
This repository was archived by the owner on Jul 3, 2025. It is now read-only.

Abstracting protocol #8

@tonestory6809

Description

@tonestory6809

Is your feature request related to a problem? Please describe.
现在pyfsd与协议9高度耦合,默认协议写死,开发其他协议的插件收到很大阻力

Describe the solution you'd like
把协议作为单独的概念抽象出来,在其他协议发送数据时使用协议暴露出的接口

Describe alternatives you've considered

  • 直接使用asyncio.Transport自带的setProtocolgetProtocol
    • 怎么把触发插件逻辑的逻辑抽象?
  • 单独创建一个协议的概念,只实现一个asyncio.Protocol的子类作为协议的包装器
    • 怎么让协议处理收到的raw数据,决定多少、哪些数据算一个有效PDU?

Additional context

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions