Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 367acc8875580934f3dbbb142d80f6bf4bdfe816 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package org.jivesoftware.smackx.nat;

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.
		 * @oaram result True if the candidate is usable. 
		 */
		public void candidateChecked(TransportCandidate cand, boolean result);
	}
}

Back to the top