public final class Socks5ByteStreamManager extends ByteStreamManager
features, xmppSession| Modifier and Type | Method and Description |
|---|---|
List<StreamHost> |
discoverProxies()
Discovers the SOCKS5 proxies.
|
List<StreamHost> |
getAvailableStreamHosts()
Gets a list of available stream hosts, including the discovered proxies and the local host.
|
int |
getPort()
Gets the port of the local host.
|
ByteStreamSession |
initiateSession(rocks.xmpp.core.Jid target,
String sessionId)
Initiates a SOCKS5 session with a target.
|
boolean |
isLocalHostEnabled()
Indicates whether the local host is enabled.
|
void |
setEnabled(boolean enabled) |
void |
setLocalHostEnabled(boolean enabled)
Enables or disables the use of a local SOCKS5 host.
|
void |
setPort(int port)
Sets the port of the local host.
|
addByteStreamListener, notifyByteStreamEvent, removeByteStreamListenerpublic boolean isLocalHostEnabled()
public void setLocalHostEnabled(boolean enabled)
enabled - If enabled.public int getPort()
public void setPort(int port)
port - The port.public void setEnabled(boolean enabled)
setEnabled in class ExtensionManagerpublic List<StreamHost> discoverProxies() throws rocks.xmpp.core.XmppException
rocks.xmpp.core.stanza.model.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.rocks.xmpp.core.XmppExceptionpublic List<StreamHost> getAvailableStreamHosts() throws IOException
IOException - If not stream hosts could be found.public ByteStreamSession initiateSession(rocks.xmpp.core.Jid target, String sessionId) throws rocks.xmpp.core.XmppException, IOException
target - The target.sessionId - The session id.rocks.xmpp.core.stanza.model.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.IOException - If the byte stream session could not be established.rocks.xmpp.core.XmppExceptionCopyright © 2014 XMPP.rocks. All rights reserved.