|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--rtpi.reliability.unreliableUdpMulticast.UnreliableUdpMulticast
This is a dummy implementation of the Reliableinterface. It uses UDP multicast and does not provide any other QoS than UNRELIABLE. It does also not provide redundant transmission. This reliability service uses the IPMCTransport class as a foundation for transmitting and receiving packets.
Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
Constructor Summary | |
UnreliableUdpMulticast(java.net.InetAddress taddr,
int tport,
int tttl,
int rate,
int bufferT)
Create a new instance of UdpUnreliable. |
Method Summary | |
void |
connectionClosed()
This is called if the undelying IPMCTransport has suffered a fatal error. |
int |
getCombinedHeaderSize()
This returns the size of the combined RTP/I and reliability headers. |
int |
getTransportPayloadSize()
This returns the size of the payload that can be transported in a single packet. |
void |
joinGroup()
This joins the multicast group. |
void |
leaveGroup()
This leaves the multicast group. |
void |
quit()
This terminates the reliability service. |
void |
receiveTransportPacket(TransportPacket packet)
This method is called when a transport packet has been received. |
void |
registerRecipient(ReliableRecipient rec)
This registers the recipient of the ADUs and loss notifications. |
void |
run()
|
void |
setDefaultInterest(int type,
int qos)
This method is used to set a default QoS for all subcomponent and RTP/I ADU type pairs to which no other QoS has been specified. |
void |
setInterest(long subcomponentID,
int type,
int qos)
This method is used to set the QoS for a given subcomponent and RTP/I ADU type pair. |
void |
setRate(int rate)
This sets the maximum datarate of the underlying IPMCTransport. |
void |
transmitRtpiAdu(java.util.LinkedList packets,
float redundancy,
int transmissionInterval)
This method is used to transmit an ADU. |
Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
setContextClassLoader,
setDaemon,
setName,
setPriority,
sleep,
sleep,
start,
stop,
stop,
suspend,
toString,
yield |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public UnreliableUdpMulticast(java.net.InetAddress taddr, int tport, int tttl, int rate, int bufferT)
taddr
- The multicast address that is used to transmit and receive the packets.tport
- The port.tttl
- The time to live.rate
- The maximum datrate at which packets may be sent. This rate is
enforced by traffic shaping in the underlying IPMCTransport. The
datarate is given in bits/second.bufferT
- The maximum time a received packet will be buffered before it is
discarded. Buffering is required when some packets have arrived
for an ADU while others are still missing. A reliability service
hands only complete ADUs to its recipient.Method Detail |
public int getTransportPayloadSize()
public int getCombinedHeaderSize()
public void run()
public void quit()
public void transmitRtpiAdu(java.util.LinkedList packets, float redundancy, int transmissionInterval) throws QosNotSupportedException, IllegalValueException
packet
- A linked list of the RTP/I packets that belong to a single ADU.redundancy
- The amount of redundancy that should be added to this ADU.transmissionInterval
- The interval during which redundancy information
may be transmitted.public void receiveTransportPacket(TransportPacket packet)
packet
- The transport packet that has been received.public void connectionClosed()
public void joinGroup()
public void leaveGroup()
public void registerRecipient(ReliableRecipient rec)
rec
- The reipient.public void setRate(int rate)
The
- new rate in bits/second.public void setInterest(long subcomponentID, int type, int qos) throws QosNotSupportedException
subcomponentID
- The ID of the subcomponent.type
- The RTP/I ADU type.qos
- The desired QoS.public void setDefaultInterest(int type, int qos) throws QosNotSupportedException
subcomponentID
- The ID of the subcomponent.type
- The RTP/I ADU type.qos
- The desired QoS.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |