|
Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.smackx.bytestreams.socks5.Socks5BytestreamSession
public class Socks5BytestreamSession
Socks5BytestreamSession class represents a SOCKS5 Bytestream session.
| Constructor Summary | |
|---|---|
protected |
Socks5BytestreamSession(Socket socket,
boolean isDirect)
|
| Method Summary | |
|---|---|
void |
close()
Closes the bytestream session. |
InputStream |
getInputStream()
Returns the InputStream associated with this session to send data. |
OutputStream |
getOutputStream()
Returns the OutputStream associated with this session to receive data. |
int |
getReadTimeout()
Returns the timeout for read operations of the input stream associated with this session. |
boolean |
isDirect()
Returns true if the session is established through a direct connection between
the initiator and target, false if the session is mediated over a SOCKS proxy. |
boolean |
isMediated()
Returns true if the session is mediated over a SOCKS proxy, false
if this session is established through a direct connection between the initiator and target. |
void |
setReadTimeout(int timeout)
Sets the specified timeout, in milliseconds. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Socks5BytestreamSession(Socket socket,
boolean isDirect)
| Method Detail |
|---|
public boolean isDirect()
true if the session is established through a direct connection between
the initiator and target, false if the session is mediated over a SOCKS proxy.
true if session is a direct connection, false if session is
mediated over a SOCKS5 proxypublic boolean isMediated()
true if the session is mediated over a SOCKS proxy, false
if this session is established through a direct connection between the initiator and target.
true if session is mediated over a SOCKS5 proxy, false if
session is a direct connection
public InputStream getInputStream()
throws IOException
BytestreamSession
getInputStream in interface BytestreamSessionIOException - if an error occurs while retrieving the input stream
public OutputStream getOutputStream()
throws IOException
BytestreamSession
getOutputStream in interface BytestreamSessionIOException - if an error occurs while retrieving the output stream
public int getReadTimeout()
throws IOException
BytestreamSession
getReadTimeout in interface BytestreamSessionIOException - if there is an error in the underlying protocol
public void setReadTimeout(int timeout)
throws IOException
BytestreamSession
setReadTimeout in interface BytestreamSessiontimeout - the specified timeout, in milliseconds
IOException - if there is an error in the underlying protocol
public void close()
throws IOException
BytestreamSessionClosing the session will also close the input stream and the output stream associated to this session.
close in interface BytestreamSessionIOException - if an error occurs while closing the session
|
Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||