diff options
Diffstat (limited to 'src/eu/siacs/conversations/xmpp/jingle/JingleSocks5Transport.java')
-rw-r--r-- | src/eu/siacs/conversations/xmpp/jingle/JingleSocks5Transport.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/xmpp/jingle/JingleSocks5Transport.java b/src/eu/siacs/conversations/xmpp/jingle/JingleSocks5Transport.java index f37d5a71..ea5d7285 100644 --- a/src/eu/siacs/conversations/xmpp/jingle/JingleSocks5Transport.java +++ b/src/eu/siacs/conversations/xmpp/jingle/JingleSocks5Transport.java @@ -24,6 +24,7 @@ public class JingleSocks5Transport extends JingleTransport { private OutputStream outputStream; private InputStream inputStream; private boolean isEstablished = false; + private boolean activated = false; protected Socket socket; public JingleSocks5Transport(JingleConnection jingleConnection, JingleCandidate candidate) { @@ -184,6 +185,10 @@ public class JingleSocks5Transport extends JingleTransport { public boolean isProxy() { return this.candidate.getType() == JingleCandidate.TYPE_PROXY; } + + public boolean needsActivation() { + return (this.isProxy() && !this.activated); + } public void disconnect() { if (this.socket!=null) { @@ -203,4 +208,8 @@ public class JingleSocks5Transport extends JingleTransport { public JingleCandidate getCandidate() { return this.candidate; } + + public void setActivated(boolean activated) { + this.activated = activated; + } } |