org.objectweb.jonathan.protocols.rtp
Class RTPProtocol
- Protocol
RTPProtocol is a partial implementation of the RTP protocol. It is an
invocation protocol allowing the emission of one-way
requests packaged within RTP packets. Requests whose size exceeds the mtu of the
underlying transport are fragmented and reassembled.
The semantics of this protocol depends on the specific transport protocol on
top of which it is plugged. RTPProtocol, proper, is unreliable and unordered
INVOC_PAYLOAD
public static final byte INVOC_PAYLOAD
our proprietary payload constant
- 10
rtp_version
public static final int rtp_version
the version of RTP supported
- 2
RTPProtocol
public RTPProtocol(int mtu)
Builds a new RTPProtocol instance
mtu
- the mtu that the RTPProtocol will assume for fragmenting
messages
isAnInvocationProtocol
public boolean isAnInvocationProtocol()
Returns true if the target protocol is an invocation protocol.
An invocation protocol is a protocol able to handle
invocations, i.e.,
requests expecting a reply. In practice, this means that calls to the
prepareInvocation
method
on sessions obtained from the target protocol will not raise an
InternalException
, but perform the appropriate work.
- isAnInvocationProtocol in interface Protocol
- true if the target protocol is an invocation protocol.
newProtocolGraph
public ProtocolGraph newProtocolGraph(ProtocolGraph next)
Builds a new RTP ProtocolGraph
next
- the lower level protocol graph.
- a new protocol graph.
newSessionIdentifier
public SessionIdentifier newSessionIdentifier(SessionIdentifier next)
Builds a new RTP SessionIdentifier
next
- the lower level session identifier
- a new RTP SessionIdentifier.