jlibrtp
Interface DebugAppIntf


public interface DebugAppIntf

DebugAppIntf can be registered on RTPSession to provide simple debugging functionality. This is particularly useful to determine whether the client is receing any data at all.

Author:
Arne Kepp

Method Summary
 void importantEvent(int type, java.lang.String description)
          Other important events that can occur in session -1 SSRC conflict 0 Session is terminating
 void packetReceived(int type, java.net.InetSocketAddress socket, java.lang.String description)
          This function wil notify you of any packets received, valid or not.
 void packetSent(int type, java.net.InetSocketAddress socket, java.lang.String description)
          This function will notify you of any packets sent from this instance of RTPSession.
 

Method Detail

packetReceived

void packetReceived(int type,
                    java.net.InetSocketAddress socket,
                    java.lang.String description)
This function wil notify you of any packets received, valid or not. Useful for network debugging, and finding bugs in jlibrtp. Type is an integer describing the type of event -2 - Invalid RTCP packet received -1 - Invalid RTP packet received 0 - RTP packet received 1 - RTCP packet received Description is a string that should be meaningful to advanced users, such as "RTP packet received from 127.0.0.1:12312, SSRC: 1380912 , payload type 1, packet size 16 octets" or "Invalid RTP packet received from 127.0.0.1:12312" This function is synchonous and should return quickly.

Parameters:
type - , the type of event, see above.
socket - , taken directly from the UDP packet
description - , see above.

packetSent

void packetSent(int type,
                java.net.InetSocketAddress socket,
                java.lang.String description)
This function will notify you of any packets sent from this instance of RTPSession. Useful for network debugging, and finding bugs in jlibrtp. Type is an integer describing the type of event 0 - RTP unicast packet sent 1 - RTP multicast packet sent 2 - RTCP unicast packet sent 3 - RTCP multicast packet sent Description is a string that should be meaningful to advanced users, such as This function is synchonous and should return quickly.

Parameters:
type - , the type of event, see above
socket - , taken directly from the UDP packet
description - , see above

importantEvent

void importantEvent(int type,
                    java.lang.String description)
Other important events that can occur in session -1 SSRC conflict 0 Session is terminating

Parameters:
type - see above
description - , see above