src/net/java/sip/communicator/impl/protocol/jabber/JingleNodesHarvester.java
/**
     * Creates a new <tt>JingleNodesRelayedCandidate</tt> instance which is to
     * represent a specific <tt>TransportAddress</tt>.
     *
     * @param transportAddress the <tt>TransportAddress</tt> allocated by the
     * relay
     * @param component the <tt>Component</tt> for which the candidate will be
     * added
     * @param localEndPoint <tt>TransportAddress</tt> of the Jingle Nodes relay
     * where we will send our packet.
     * @return a new <tt>JingleNodesRelayedCandidate</tt> instance which
     * represents the specified <tt>TransportAddress</tt>
     */
Creates a new JingleNodesRelayedCandidate instance which is to
represent a specific TransportAddress.

@param transportAddress the TransportAddress allocated by the
relay
@param component the Component for which the candidate will be
added
@param localEndPoint TransportAddress of the Jingle Nodes relay
where we will send our packet.
@return a new JingleNodesRelayedCandidate instance which
represents the specified TransportAddress
Creates a new JingleNodesRelayedCandidate instance which is to represent a specific TransportAddress . @param transportAddress the TransportAddress allocated by the relay @param component the Component for which the candidate will be added @param localEndPoint TransportAddress of the Jingle Nodes relay where we will send our packet . @return a new JingleNodesRelayedCandidate instance which represents the specified TransportAddress
protected JingleNodesCandidate createJingleNodesCandidate(
            TransportAddress transportAddress, Component component,
            TransportAddress localEndPoint)
    {
        JingleNodesCandidate cand = null;
        try
        {
            cand = new JingleNodesCandidate(transportAddress,
                        component,
                        localEndPoint);
            IceSocketWrapper stunSocket = cand.getStunSocket(null);
            cand.getStunStack().addSocket(stunSocket);
            component.getComponentSocket()
                .add(cand.getCandidateIceSocketWrapper());
        }
        catch(Throwable e)
        {
            logger.debug(
                    "Exception occurred when creating JingleNodesCandidate: " +
                    e);
        }
        return cand;
    }
protected JingleNodesCandidate createJingleNodesCandidate ( TransportAddress transportAddress , Component component , TransportAddress localEndPoint ) { JingleNodesCandidate cand = null ; try { cand = new JingleNodesCandidate ( transportAddress , component , localEndPoint ) ; IceSocketWrapper stunSocket = cand . getStunSocket ( null ) ; cand . getStunStack ( ) . addSocket ( stunSocket ) ; component . getComponentSocket ( ) . add ( cand . getCandidateIceSocketWrapper ( ) ) ; } catch ( Throwable e ) { logger . debug ( "Exception occurred when creating JingleNodesCandidate: " + e ) ; } return cand ; }
Creates a new <tt>JingleNodesRelayedCandidate</tt> instance which is to
 represent a specific <tt>TransportAddress</tt>.
Creates a new <tt > JingleNodesRelayedCandidate< / tt > instance which is to represent a specific <tt > TransportAddress< / tt > .