mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-06-30 23:26:42 +02:00
4b6de6647b
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@6517 b35dd754-fafc-0310-a699-88a17e54d16e
49 lines
1.3 KiB
Java
49 lines
1.3 KiB
Java
package org.jivesoftware.smackx.jingle.nat;
|
|
|
|
/**
|
|
* Transport resolver Interface
|
|
*/
|
|
public abstract interface TransportResolverListener {
|
|
/**
|
|
* Resolver listener.
|
|
*/
|
|
public interface Resolver extends TransportResolverListener {
|
|
/**
|
|
* The resolution process has been started.
|
|
*/
|
|
public void init();
|
|
|
|
/**
|
|
* A transport candidate has been added
|
|
*
|
|
* @param cand The transport candidate.
|
|
*/
|
|
public void candidateAdded(TransportCandidate cand);
|
|
|
|
/**
|
|
* All the transport candidates have been obtained.
|
|
*/
|
|
public void end();
|
|
}
|
|
|
|
/**
|
|
* Resolver checker.
|
|
*/
|
|
public interface Checker extends TransportResolverListener {
|
|
/**
|
|
* A transport candidate has been checked.
|
|
*
|
|
* @param cand The transport candidate that has been checked.
|
|
* @param result True if the candidate is usable.
|
|
*/
|
|
public void candidateChecked(TransportCandidate cand, boolean result);
|
|
|
|
/**
|
|
* A transport candidate is being checked.
|
|
*
|
|
* @param cand The transport candidate that is being checked.
|
|
*/
|
|
public void candidateChecking(TransportCandidate cand);
|
|
}
|
|
}
|