From f16e86d1a644e6faed5c7d25090360513230ea1b Mon Sep 17 00:00:00 2001 From: paweldomas Date: Thu, 21 Aug 2014 16:03:21 +0000 Subject: [PATCH] Adds setStunStack setter method in Agent class. Patch by Aakash Garg. --- src/org/ice4j/ice/Agent.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/org/ice4j/ice/Agent.java b/src/org/ice4j/ice/Agent.java index 9d48fd7..9058680 100644 --- a/src/org/ice4j/ice/Agent.java +++ b/src/org/ice4j/ice/Agent.java @@ -38,6 +38,7 @@ import org.ice4j.stack.*; * @author Emil Ivov * @author Lyubomir Marinov * @author Sebastien Vincent + * @author Aakash Garg */ public class Agent { @@ -1019,6 +1020,17 @@ public class Agent stunStack = new StunStack(); return stunStack; } + + /** + * Sets the StunStack used by this Agent. + * + * @param stunStack the stunStack to be used by this Agent. + * + */ + public void setStunStack(StunStack stunStack) + { + this.stunStack = stunStack; + } /** * Returns the number of {@link CheckList}s that are currently active.