src/net/java/sip/communicator/impl/protocol/jabber/RawUdpTransportManager.java
/**
     * Overrides the super implementation in order to remember the remote
     * counterpart of the negotiation between the local and the remote peer for
     * subsequent calls to {@link #getStreamTarget(MediaType)}.
     *
     * @param remote the collection of <tt>ContentPacketExtension</tt>s which
     * represents the remote counterpart of the negotiation between the local
     * and the remote peer
     * @return <tt>true</tt> because <tt>RawUdpTransportManager</tt> does not
     * perform connectivity checks
     * @see TransportManagerJabberImpl#startConnectivityEstablishment(Iterable)
     */
Overrides the super implementation in order to remember the remote
counterpart of the negotiation between the local and the remote peer for
subsequent calls to  #getStreamTarget(MediaType).

@param remote the collection of ContentPacketExtensions which
represents the remote counterpart of the negotiation between the local
and the remote peer
@return true because RawUdpTransportManager does not
perform connectivity checks
@see TransportManagerJabberImpl#startConnectivityEstablishment(Iterable)
Overrides the super implementation in order to remember the remote counterpart of the negotiation between the local and the remote peer for subsequent calls to #getStreamTarget ( MediaType ) . @param remote the collection of ContentPacketExtensions which represents the remote counterpart of the negotiation between the local and the remote peer @return true because RawUdpTransportManager does not perform connectivity checks @see TransportManagerJabberImpl#startConnectivityEstablishment ( Iterable )
@Override
    public boolean startConnectivityEstablishment(
            Iterable<ContentPacketExtension> remote)
        throws OperationFailedException
    {
        if ((remote != null) && !remotes.contains(remote))
        {
            /*
             * The state of the session in Jingle is maintained by each peer and
             * is modified by content-add and content-remove. The remotes field
             * of this RawUdpTransportManager represents the state of the
             * session with respect to the remote peer. When the remote peer
             * tells us about a specific set of contents, make sure that it is
             * the only record we will have with respect to the specified set of
             * contents.
             */
            for (ContentPacketExtension content : remote)
                removeRemoteContent(content.getName());
            remotes.add(remote);
        }
        return super.startConnectivityEstablishment(remote);
    }
@ Override public boolean startConnectivityEstablishment ( Iterable < ContentPacketExtension > remote ) throws OperationFailedException { if ( ( remote != null ) && ! remotes . contains ( remote ) ) { /*
             * The state of the session in Jingle is maintained by each peer and
             * is modified by content-add and content-remove. The remotes field
             * of this RawUdpTransportManager represents the state of the
             * session with respect to the remote peer. When the remote peer
             * tells us about a specific set of contents, make sure that it is
             * the only record we will have with respect to the specified set of
             * contents.
             */ for ( ContentPacketExtension content : remote ) removeRemoteContent ( content . getName ( ) ) ; remotes . add ( remote ) ; } return super . startConnectivityEstablishment ( remote ) ; }
Overrides the super implementation in order to remember the remote
 counterpart of the negotiation between the local and the remote peer for
 subsequent calls to {@link #getStreamTarget(MediaType)}.
Overrides the super implementation in order to remember the remote counterpart of the negotiation between the local and the remote peer for subsequent calls to { @link #getStreamTarget ( MediaType ) } .