From 991c6b32d07ec0ce0594ef8499b7ddecf6762e9d Mon Sep 17 00:00:00 2001 From: emcho Date: Fri, 26 Feb 2010 14:30:00 +0000 Subject: [PATCH] Adds Keep Alive-s to ServerReflexiveCandidate-s --- .../ice/harvest/StunCandidateHarvester.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/org/ice4j/ice/harvest/StunCandidateHarvester.java b/src/org/ice4j/ice/harvest/StunCandidateHarvester.java index bb14710..17a4045 100644 --- a/src/org/ice4j/ice/harvest/StunCandidateHarvester.java +++ b/src/org/ice4j/ice/harvest/StunCandidateHarvester.java @@ -124,4 +124,26 @@ public class StunCandidateHarvester exception); } } + + private class KeepAliveThread extends Thread + { + public KeepAliveThread() + { + super("Stun Harvester Keep Alive Thread"); + setDaemon(true); + } + + public void run() + { + synchronized(allocatedCandidates) + { + allocatedCandidates.wait(keepAliveInterval); + + for(ServerReflexiveCandidate srflxCand : allocatedCandidates) + { + + } + } + } + } }