|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.impl.rtp.RtpSocket
public class RtpSocket
| Field Summary | |
|---|---|
protected java.net.InetSocketAddress |
remoteAddress
|
protected org.mobicents.media.server.spi.Timer |
timer
|
| Constructor Summary | |
|---|---|
RtpSocket(Transceiver transceiver,
org.mobicents.media.server.spi.Timer timer,
java.util.Map<java.lang.Integer,org.mobicents.media.Format> rtpMap,
RtpFactory rtpFactory)
Creates a new instance of RtpSocket |
|
| Method Summary | |
|---|---|
int |
getJitter()
Gets the jitter for time of packet arrival |
RtpSocketListener |
getListener()
|
java.lang.String |
getLocalAddress()
Gets address to which this socked is bound. |
int |
getLocalPort()
Returns port number to which this socked is bound. |
protected int |
getPayloadType(org.mobicents.media.Format format)
Determines payload type for specified format. |
org.mobicents.media.MediaSource |
getReceiveStream()
Gets receiver stream. |
java.util.HashMap<java.lang.Integer,org.mobicents.media.Format> |
getRtpMap()
Gets relations between payload number and format used by this socket. |
SendStream |
getSendStream()
(Non Java-doc). |
protected void |
notify(java.lang.Exception e)
|
void |
receive(RtpPacket rtpPacket)
|
void |
release()
|
void |
resetRtpMap()
|
void |
send(org.mobicents.media.Buffer buffer)
Sends media data to remote peer. |
void |
setJitter(int jitter)
Assign new value of packet time arrival jitter. |
void |
setListener(RtpSocketListener listener)
|
void |
setPeer(java.net.InetAddress address,
int port)
Assigns remote end. |
void |
setRtpMap(java.util.HashMap<java.lang.Integer,org.mobicents.media.Format> rtpMap)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.net.InetSocketAddress remoteAddress
protected org.mobicents.media.server.spi.Timer timer
| Constructor Detail |
|---|
public RtpSocket(Transceiver transceiver,
org.mobicents.media.server.spi.Timer timer,
java.util.Map<java.lang.Integer,org.mobicents.media.Format> rtpMap,
RtpFactory rtpFactory)
timer - used to synchronize receiver stream.rtpMap - RTP payloads list.| Method Detail |
|---|
public java.lang.String getLocalAddress()
public int getLocalPort()
public int getJitter()
public void setJitter(int jitter)
jitter - the value of jitter in milliseconds.public org.mobicents.media.MediaSource getReceiveStream()
public void release()
public RtpSocketListener getListener()
public void setListener(RtpSocketListener listener)
public void setPeer(java.net.InetAddress address,
int port)
throws java.io.IOException
address - the address of the remote party.port - the port number of the remote party.
java.io.IOExceptionpublic java.util.HashMap<java.lang.Integer,org.mobicents.media.Format> getRtpMap()
Format objectpublic void setRtpMap(java.util.HashMap<java.lang.Integer,org.mobicents.media.Format> rtpMap)
public void resetRtpMap()
protected int getPayloadType(org.mobicents.media.Format format)
format - the object representing format.
public SendStream getSendStream()
org.mobicents.media.server.impl.rtp.RtpSocket#startSendStream(PushBufferDataSource);
public void send(org.mobicents.media.Buffer buffer)
throws java.io.IOException
buffer - the buffer which contains media data
java.io.IOExceptionpublic void receive(RtpPacket rtpPacket)
protected void notify(java.lang.Exception e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||