|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.samples.rtp.NaradaRTPConnector
public class NaradaRTPConnector
An implementation of RTPConnector based on Naradabrokering RTP support. In initialization phase, this might fail. because when we register this client we are sending the message with UDP If that message of the response of that message get lost, then this client will not initialize Therefore it will not work.
| Field Summary | |
|---|---|
protected String |
brokerURI
|
protected int |
endPointID
|
protected TransportHandler |
transportHandler
|
| Constructor Summary | |
|---|---|
NaradaRTPConnector(String ip,
int remotePort,
int topicNumber)
|
|
| Method Summary | |
|---|---|
void |
close()
Close all the RTP, RTCP streams. |
javax.media.protocol.PushSourceStream |
getControlInputStream()
Returns an input stream to receive the RTCP data. |
javax.media.rtp.OutputDataStream |
getControlOutputStream()
Returns an output stream to send the RTCP data. |
javax.media.protocol.PushSourceStream |
getDataInputStream()
Returns an input stream to receive the RTP data. |
javax.media.rtp.OutputDataStream |
getDataOutputStream()
Returns an output stream to send the RTP data. |
int |
getEndPointId()
return the endPointId |
int |
getReceiveBufferSize()
Get the receive buffer size set on the RTP data channel. |
double |
getRTCPBandwidthFraction()
Return the RTCP bandwidth fraction. |
double |
getRTCPSenderBandwidthFraction()
Return the RTCP sender bandwidth fraction. |
int |
getSendBufferSize()
Get the send buffer size set on the RTP data channel. |
void |
handleData(byte[] data,
String sender)
|
boolean |
isClient()
This method indicates that the node in question is a client |
void |
processNodeAddressResponse(String sender,
byte[] addressResponse)
this method will be invoked by handleData method, when a response is received for the request |
void |
propagateEventToBroker(int topic,
byte[] data,
int offset,
int length)
coverts the received data to a serialized RtpEvent object and passes it to the transportHandler |
void |
sendDataTo(byte[] data)
send the given byte array |
void |
setReceiveBufferSize(int size)
Set the receive buffer size of the RTP data channel. |
void |
setSendBufferSize(int size)
Set the send buffer size of the RTP data channel. |
void |
subscribeTo(int topic)
subscribe to a topic on the given node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TransportHandler transportHandler
protected int endPointID
protected String brokerURI
| Constructor Detail |
|---|
public NaradaRTPConnector(String ip,
int remotePort,
int topicNumber)
| Method Detail |
|---|
public void processNodeAddressResponse(String sender,
byte[] addressResponse)
sender - addressResponse -
public void handleData(byte[] data,
String sender)
handleData in interface HandlerdataReceived - received datapublic boolean isClient()
isClient in interface Handlerpublic void subscribeTo(int topic)
public void sendDataTo(byte[] data)
public void propagateEventToBroker(int topic,
byte[] data,
int offset,
int length)
public int getEndPointId()
public javax.media.protocol.PushSourceStream getDataInputStream()
getDataInputStream in interface javax.media.rtp.RTPConnectorpublic javax.media.rtp.OutputDataStream getDataOutputStream()
getDataOutputStream in interface javax.media.rtp.RTPConnectorpublic javax.media.protocol.PushSourceStream getControlInputStream()
getControlInputStream in interface javax.media.rtp.RTPConnectorpublic javax.media.rtp.OutputDataStream getControlOutputStream()
getControlOutputStream in interface javax.media.rtp.RTPConnectorpublic void close()
close in interface javax.media.rtp.RTPConnector
public void setReceiveBufferSize(int size)
throws IOException
setReceiveBufferSize in interface javax.media.rtp.RTPConnectorIOExceptionpublic int getReceiveBufferSize()
getReceiveBufferSize in interface javax.media.rtp.RTPConnector
public void setSendBufferSize(int size)
throws IOException
setSendBufferSize in interface javax.media.rtp.RTPConnectorIOExceptionpublic int getSendBufferSize()
getSendBufferSize in interface javax.media.rtp.RTPConnectorpublic double getRTCPBandwidthFraction()
getRTCPBandwidthFraction in interface javax.media.rtp.RTPConnectorpublic double getRTCPSenderBandwidthFraction()
getRTCPSenderBandwidthFraction in interface javax.media.rtp.RTPConnector
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||