Skip to content

nonpool/typedispatchdemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

netty4 + protobuf3 最佳实践

  1. netty4+protobuf3多类型传输实现
  2. 优雅的实现消息分发

使用步骤:

  1. 先运行protoGen.bat生成protobuf实体类,如果是*nix平台直接把bat改成sh即可(项目中已经生成)
  2. 运行com.nonpool.generator.HandlerGenerator生成对应类型handler
  3. 在生成的handler中填写业务逻辑
  4. 运行com.nonpool.server.Application中的主方法启动服务端
  5. 运行com.nonpool.client.ClientServer中的主方法启动客户端循环发送数据

About

netty4+protobuf3 demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published