Netty 4.0 on multiple ports with multiple protocols?

前端 未结 2 1406
长情又很酷
长情又很酷 2021-02-06 13:48

I\'m looking for a server example that would combine a http handler on port 80 and a protobuf handler on another port in the same jar. Thanks!

2条回答
  •  借酒劲吻你
    2021-02-06 14:31

    I don't know what exactly you are looking for. Its just about creating two different ServerBootstrap instances, configure them and call bind(..) thats it.

提交回复
热议问题