3

I'm using Netty 3.5.4.Final.

How can one get the number of inbound and outbound transferred bytes within a single netty client/server instance? Current or average upload/download speed would be nice too.

4

1 回答 1

4

该包org.jboss.netty.handler.traffic提供了您需要的类。您可以在管道中安装GlobalTrafficShapingHandler(读取和写入限制 = 0)来测量吞吐量和通过管道的字节数。

于 2012-08-18T17:01:56.820 回答