简体   繁体   English

netty tcp bytebuffer服务器和客户端

[英]netty tcp bytebuffer server and client

After exploring and implementing Proactor design pattern, faced an issue that the client('C' client) connections are no more accepting after a limit. 在探索和实现Proactor设计模式之后,遇到了客户端(“C”客户端)连接在限制之后不再接受的问题。 Started to explore netty. 开始探索netty。 Here is what Iam trying to do 1. C client establishes a connection 2. Java Server accepts connection and starts sending 8 Mb size of Byte Buffer to the client using TCP. 以下是Iam尝试做的事情1.C客户端建立连接2. Java Server接受连接并开始使用TCP向客户端发送8 Mb大小的字节缓冲区。 Any ideas ? 有任何想法吗 ? Is netty a good option ? netty是一个不错的选择吗? I have browsing for a good examples of netty, unfortunately unlucky. 我浏览了一个很好的netty示例,不幸的是不幸。

Thanks in advance. 提前致谢。

Regards Ravi 关心拉维

Well yes netty is a good option. 是的,netty是一个不错的选择。 You should use ChunkedFile 你应该使用ChunkedFile

Here is a good example. 这是一个很好的例子。

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

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