|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RtpSocket
| Method Summary | |
|---|---|
void |
bind()
Binds Datagram to the address sprecified. |
AVProfile |
getAVProfile()
Gets currently used audio/video profile |
long |
getBytesReceived()
Statistical method. |
long |
getBytesSent()
Statistical method. |
java.util.Collection<Codec> |
getCodecs()
Gets the list of used codecs. |
int |
getJitter()
Gets the jitter for time of packet arrival |
java.lang.String |
getLocalAddress()
Gets address to which this socked is bound. |
int |
getLocalPort()
Returns port number to which this socked is bound. |
int |
getPacketsReceived()
Gets the number of received packets |
int |
getPacketsSent()
Gets the number of sent packets |
MediaSource |
getReceiveStream()
(Non Java-doc). |
MediaSink |
getSendStream()
(Non Java-doc). |
void |
release()
Closes this socket and resets its streams; This method is called by RtpSocket user. |
void |
setDtmfPayload(int dtmf)
Assigns RFC2833 DTMF playload number. |
void |
setFormat(int payloadId,
Format format)
Specifies format and payload id which will be used by this socket for transmission This methods should be used by other components which are responsible for SDP negotiation. |
void |
setJitter(int jitter)
Assign new value of packet time arrival jitter. |
void |
setPeer(java.net.InetAddress address,
int port)
Assigns remote end. |
| Method Detail |
|---|
java.lang.String getLocalAddress()
int getLocalPort()
AVProfile getAVProfile()
void bind()
throws java.io.IOException,
ResourceUnavailableException
java.io.IOException
ResourceUnavailableException
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.IOExceptionMediaSink getSendStream()
org.mobicents.media.server.impl.rtp.RtpSocket#startSendStream(PushBufferDataSource);MediaSource getReceiveStream()
org.mobicents.media.server.impl.rtp.RtpSocket#startSendStream(PushBufferDataSource);
void setFormat(int payloadId,
Format format)
payloadId - rtp payload numberformat - the format object.void setDtmfPayload(int dtmf)
dtmf - the DTMF payload number.java.util.Collection<Codec> getCodecs()
int getJitter()
void setJitter(int jitter)
jitter - the value of jitter in milliseconds.int getPacketsReceived()
int getPacketsSent()
long getBytesReceived()
long getBytesSent()
void release()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||