简体   繁体   English

Netty TCP推送/流服务器

[英]Netty TCP push/streaming server

Is it possible to implement request for stream style client server interactions at the tcp level in netty? 是否可以在netty的tcp级别上实现流样式客户端服务器交互的请求? The protocol would essentially follow: 该协议基本上遵循:

t0: tcp handshake t0:tcp握手

t1: client requests topic X t1:客户请求主题X

t2-tn: server sends latest enqueued update on topic X t2-tn:服务器发送有关主题X的最新入队更新

I've seen a netty websockets example, but is it possible, and are there examples, to do this in netty at the tcp level? 我已经看过一个netty websockets示例,但是在TCP级别的netty中可以这样做吗?

Edit: I'm really not asking if this is the correct way to implement the feature, or if there is another solution involving installation of third party software, even if it would be the "right" thing to do. 编辑:我真的不是在问这是否是实现此功能的正确方法,或者是否存在涉及安装第三方软件的其他解决方案,即使这是“正确的”事情。 I am asking if this is possible to do using netty. 我问这是否可以使用netty做。

I would be very interested to hear from any users of netty's SCTP features, any metrics appreciated. 我将非常有兴趣听到netty的SCTP功能的任何用户,赞赏任何度量标准。

Nat回答了我的问题-在channelActive和channelInactive中从发件人的频道组添加和删除传入的频道,可以将任意结构的消息推送到订阅客户端。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM