semi wrote:
> 
> Hi, I would like to know if there are some way to get total bytes recived
> including TCP protocol bytes (Head TCP-IP, CRC..., and all datagram
> retrasmition). I am studying about use Jpcap but is a difficult solution.
> All control methods to integrate MINA with JMX are usuless.
> 

Hi!
AFAIK there's no pure java way for doing this. The standard Java API for
networking is hiding the TCP/UDP layer. Mina is a pure java solution, so
there's no way to get Information about TCP headers or similiar.
The JPCAP API you mentioned uses JNI to access native code. There may be a
way to let mina access network through JPCAP, but you will have to write the
Acceptors and Connectors on your own and it looks like if you're breaking a
butterfly upon a wheel.

The JPCAP API seems rather simple, so I would suggest you to let your
mina/NIO application do its work while you're capturing and counting with
JPCAP. 

regards

Steve
-- 
View this message in context: 
http://www.nabble.com/How-can-I-get-Total-bytes-number-recived-including-TCP-protocol-bytes.-tp14707940s16868p14708856.html
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

Reply via email to