net.sf.fmj.media.rtp.RTPTransStats Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fmj Show documentation
Show all versions of fmj Show documentation
Freedom for Media in Java
package net.sf.fmj.media.rtp;
import javax.media.rtp.*;
public class RTPTransStats implements TransmissionStats
{
protected int total_pdu;
protected int total_bytes;
/**
* Updated by the RTPTransmitter or the RTCPTransmitter
* when an RTCP packet is transmitted.
*/
public int total_rtcp;
public RTPTransStats()
{
total_pdu = 0;
total_bytes = 0;
total_rtcp = 0;
}
public int getBytesTransmitted()
{
return total_bytes;
}
public int getPDUTransmitted()
{
return total_pdu;
}
public int getRTCPSent()
{
return total_rtcp;
}
}