src/net/java/sip/communicator/service/protocol/media/TransportManager.java
/**
     * Creates a media <tt>StreamConnector</tt> for a stream of a specific
     * <tt>MediaType</tt>. The minimum and maximum of the media port boundaries
     * are taken into account.
     *
     * @param mediaType the <tt>MediaType</tt> of the stream for which a
     * <tt>StreamConnector</tt> is to be created
     * @return a <tt>StreamConnector</tt> for the stream of the specified
     * <tt>mediaType</tt>
     * @throws OperationFailedException if the binding of the sockets fails
     */
Creates a media StreamConnector for a stream of a specific
MediaType. The minimum and maximum of the media port boundaries
are taken into account.

@param mediaType the MediaType of the stream for which a
StreamConnector is to be created
@return a StreamConnector for the stream of the specified
mediaType
@throws OperationFailedException if the binding of the sockets fails
Creates a media StreamConnector for a stream of a specific MediaType . The minimum and maximum of the media port boundaries are taken into account . @param mediaType the MediaType of the stream for which a StreamConnector is to be created @return a StreamConnector for the stream of the specified mediaType @throws OperationFailedException if the binding of the sockets fails
protected StreamConnector createStreamConnector(MediaType mediaType)
        throws OperationFailedException
    {
        NetworkAddressManagerService nam
            = ProtocolMediaActivator.getNetworkAddressManagerService();
        InetAddress intendedDestination = getIntendedDestination(getCallPeer());
        InetAddress localHostForPeer = nam.getLocalHost(intendedDestination);
        PortTracker portTracker = getPortTracker(mediaType);
        DatagramSocket rtpSocket
            = createDatagramSocket(portTracker, localHostForPeer);
        DatagramSocket rtcpSocket
            = createDatagramSocket(portTracker, localHostForPeer);
        return new DefaultStreamConnector(rtpSocket, rtcpSocket);
    }
protected StreamConnector createStreamConnector ( MediaType mediaType ) throws OperationFailedException { NetworkAddressManagerService nam = ProtocolMediaActivator . getNetworkAddressManagerService ( ) ; InetAddress intendedDestination = getIntendedDestination ( getCallPeer ( ) ) ; InetAddress localHostForPeer = nam . getLocalHost ( intendedDestination ) ; PortTracker portTracker = getPortTracker ( mediaType ) ; DatagramSocket rtpSocket = createDatagramSocket ( portTracker , localHostForPeer ) ; DatagramSocket rtcpSocket = createDatagramSocket ( portTracker , localHostForPeer ) ; return new DefaultStreamConnector ( rtpSocket , rtcpSocket ) ; }
Creates a media <tt>StreamConnector</tt> for a stream of a specific
 <tt>MediaType</tt>.
Creates a media <tt > StreamConnector< / tt > for a stream of a specific <tt > MediaType< / tt > .
//create the RTP socket. //create the RTCP socket, preferably on the port following our RTP one.