当协议越来越多时候如何分模块管理?

Open
#69 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
c

Research direction

No file, test, or entry point is named in the issue. Begin by locating the implementation and documentation for .package, get, and result, then verify each question against the protocol definitions. Done would require clear guidance on field behavior, naming and limits, key fields, and managing larger protocol sets.

Written by the indexing model from the issue text.

Description

1、.package的结构体是否固定需要?里面的type和session有何作用,是否可变?
2、如”get 1 {}",这里的1是否有上限?get命名标准是什么?
3、如“result 0 : *datastruct(id)",这里的key字段一定要是结构体datastruct里面的字段吗?
4、当协议越来越多,规模越来越大,如何分模块管理?有没有什么好的建议?
我以前没接触过protobuf这类型的协议,云大能给点小小建议吗?非常感谢!

Dominant language
C
Stars
985
Forks
254
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudwu/sproto

All issues in cloudwu/sproto

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.