org.mobicents.media.server.testsuite.general.rtp
Interface RtpSocketFactory

All Known Implementing Classes:
RtpSocketFactoryImpl

public interface RtpSocketFactory

Start time:09:34:34 2009-08-03
Project: mobicents-media-server-test-suite
This interface defines RtpSocketFacctory - similar can be found in mms, however tool should be independent so we cant reuse mms components.

Author:
Bartosz Baranowski

Method Summary
 RtpSocket createSocket()
           
 java.lang.String getBindAddress()
          Gets the IP address to which trunk is bound.
 java.util.Vector<javax.sdp.Attribute> getFormatMap()
           
 int getHighPort()
           
 int getLowPort()
           
 java.lang.String getPortRange()
          Gets the available port range.
 void releaseSocket(RtpSocket socket)
           
 void setBindAddress(java.lang.String bindAddress)
          Modify the bind address.
 void setFormatMap(java.util.Vector<javax.sdp.Attribute> originalFormatMap)
           
 void setPortRange(java.lang.String portRange)
          Modify port used to create RTP stream.
 void start()
           
 void stop()
          Terminates execution of created sockets, this is hard stop method, which will propably break calls.
 

Method Detail

createSocket

RtpSocket createSocket()
                       throws java.net.SocketException,
                              java.io.IOException
Throws:
java.net.SocketException
java.io.IOException

releaseSocket

void releaseSocket(RtpSocket socket)

stop

void stop()
Terminates execution of created sockets, this is hard stop method, which will propably break calls.


start

void start()
           throws java.net.SocketException,
                  java.io.IOException
Throws:
java.net.SocketException
java.io.IOException

getBindAddress

java.lang.String getBindAddress()
Gets the IP address to which trunk is bound. All endpoints of the trunk use this address for RTP connection.

Returns:
the IP address string to which this trunk is bound.

setBindAddress

void setBindAddress(java.lang.String bindAddress)
                    throws java.net.UnknownHostException
Modify the bind address. All endpoints of the trunk use this address for RTP connection.

Parameters:
bindAddress - IP address as string or host name.
Throws:
java.net.UnknownHostException

getPortRange

java.lang.String getPortRange()
Gets the available port range.

Returns:
the string in format "lowPort-highPort".

getLowPort

int getLowPort()

getHighPort

int getHighPort()

setPortRange

void setPortRange(java.lang.String portRange)
Modify port used to create RTP stream.

Parameters:
portRange - the string in format "lowPort-highPort"

getFormatMap

java.util.Vector<javax.sdp.Attribute> getFormatMap()

setFormatMap

void setFormatMap(java.util.Vector<javax.sdp.Attribute> originalFormatMap)


Copyright © 2009. All Rights Reserved.