|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.testsuite.general.rtp.RtpSocketImpl
public class RtpSocketImpl
Start time:10:17:34 2009-08-03
Project: mobicents-media-server-test-suite
| Constructor Summary | |
|---|---|
RtpSocketImpl(java.util.Vector<javax.sdp.Attribute> formatMap,
RtpSocketFactoryImpl rtpSocketFactory)
|
|
| Method Summary | |
|---|---|
void |
addListener(RtpSocketListener listener)
|
void |
close()
Closes socket |
java.nio.channels.DatagramChannel |
getChannel()
|
java.lang.String |
getLocalAddress()
Gets address to which this socked is bound. |
int |
getLocalPort()
Returns port number to which this socked is bound. |
java.nio.channels.SelectionKey |
getSelectionKey()
|
int |
init(java.net.InetAddress localAddress,
int lowPort,
int highPort)
|
boolean |
isChannelOpen()
|
void |
notify(java.lang.Exception e)
|
void |
receive(RtpPacket rtpPacket)
|
void |
release()
|
void |
removeListener(RtpSocketListener listener)
|
void |
resetRtpMap()
|
void |
setPeer(java.net.InetAddress address,
int port)
Assigns remote end. |
void |
setSelectionKey(java.nio.channels.SelectionKey key)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RtpSocketImpl(java.util.Vector<javax.sdp.Attribute> formatMap,
RtpSocketFactoryImpl rtpSocketFactory)
transceiver - timer - formatMap - rtpSocketFactoryImpl2 - | Method Detail |
|---|
public int init(java.net.InetAddress localAddress,
int lowPort,
int highPort)
throws java.net.SocketException,
java.io.IOException
init in interface RtpSocketjava.net.SocketException
java.io.IOExceptionpublic void addListener(RtpSocketListener listener)
addListener in interface RtpSocketpublic void removeListener(RtpSocketListener listener)
removeListener in interface RtpSocketpublic void resetRtpMap()
public boolean isChannelOpen()
isChannelOpen in interface RtpSocketpublic void release()
release in interface RtpSocketpublic void close()
close in interface RtpSocket
public void setPeer(java.net.InetAddress address,
int port)
throws java.io.IOException
setPeer in interface RtpSocketaddress - the address of the remote party.port - the port number of the remote party.
java.io.IOExceptionpublic java.lang.String getLocalAddress()
getLocalAddress in interface RtpSocketpublic int getLocalPort()
getLocalPort in interface RtpSocketpublic void notify(java.lang.Exception e)
notify in interface RtpSocketpublic void receive(RtpPacket rtpPacket)
receive in interface RtpSocketpublic java.nio.channels.SelectionKey getSelectionKey()
getSelectionKey in interface RtpSocketpublic void setSelectionKey(java.nio.channels.SelectionKey key)
public java.nio.channels.DatagramChannel getChannel()
getChannel in interface RtpSocket
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||