org.objectweb.jonathan.libs.protocols.rtp
Class RTPProtocol
java.lang.Object
|
+--org.objectweb.jonathan.libs.protocols.rtp.RTPProtocol
- All Implemented Interfaces:
- Protocol
- public class RTPProtocol
- extends Object
- implements 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
|
Field Summary |
static byte |
INVOC_PAYLOAD
our proprietary payload constant |
static int |
rtp_version
the version of RTP supported |
|
Constructor Summary |
RTPProtocol(int mtu)
Builds a new RTPProtocol instance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rtp_version
public static final int rtp_version
- the version of RTP supported
INVOC_PAYLOAD
public static final byte INVOC_PAYLOAD
- our proprietary payload constant
RTPProtocol
public RTPProtocol(int mtu)
- Builds a new RTPProtocol instance
- Parameters:
mtu - the mtu that the RTPProtocol will assume for fragmenting
messages
isAnInvocationProtocol
public boolean isAnInvocationProtocol()
- Description copied from interface:
Protocol
- 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.
- Specified by:
isAnInvocationProtocol in interface Protocol
- Following copied from interface:
org.objectweb.jonathan.apis.protocols.Protocol
- Returns:
- true if the target protocol is an invocation protocol.
newSessionIdentifier
public SessionIdentifier newSessionIdentifier(SessionIdentifier next)
- Builds a new RTP SessionIdentifier
- Parameters:
next - the lower level session identifier- Returns:
- a new RTP SessionIdentifier.
newProtocolGraph
public ProtocolGraph newProtocolGraph(ProtocolGraph next)
- Builds a new RTP ProtocolGraph
- Parameters:
next - the lower level protocol graph.- Returns:
- a new protocol graph.