| Package | Description |
|---|---|
| socks |
| Modifier and Type | Method and Description |
|---|---|
protected ProxyMessage |
Proxy.accept() |
protected ProxyMessage |
Proxy.bind(java.net.InetAddress ip,
int port) |
protected ProxyMessage |
Proxy.bind(java.lang.String host,
int port) |
protected ProxyMessage |
Proxy.connect(java.net.InetAddress ip,
int port) |
protected ProxyMessage |
Proxy.connect(java.lang.String host,
int port) |
protected ProxyMessage |
Proxy.exchange(ProxyMessage request)
Sends the request reads reply and returns it
throws exception if something wrong with IO
or the reply code is not zero
|
protected abstract ProxyMessage |
Proxy.formMessage(java.io.InputStream in) |
protected ProxyMessage |
Socks5Proxy.formMessage(java.io.InputStream in) |
protected ProxyMessage |
Socks4Proxy.formMessage(java.io.InputStream in) |
abstract void |
ProxyMessage.read(java.io.InputStream in)
Initialises Message from the stream.
|
abstract void |
ProxyMessage.read(java.io.InputStream in,
boolean client_mode)
Initialises Message from the stream.
|
protected ProxyMessage |
Proxy.readMsg()
Reads the reply from the SOCKS server
|
protected void |
Proxy.sendMsg(ProxyMessage msg)
Sends the request to SOCKS server
|
protected void |
Proxy.startSession() |
protected void |
Socks5Proxy.startSession() |
protected ProxyMessage |
Proxy.udpAssociate(java.net.InetAddress ip,
int port) |
protected ProxyMessage |
Proxy.udpAssociate(java.lang.String host,
int port) |
abstract void |
ProxyMessage.write(java.io.OutputStream out)
Writes the message to the stream.
|
| Constructor and Description |
|---|
Socks5DatagramSocket()
Construct Datagram socket for communication over SOCKS5 proxy
server.
|
Socks5DatagramSocket(int port)
Construct Datagram socket for communication over SOCKS5 proxy
server.
|
Socks5DatagramSocket(int port,
java.net.InetAddress ip)
Construct Datagram socket for communication over SOCKS5 proxy
server.
|
Socks5DatagramSocket(Proxy p,
int port,
java.net.InetAddress ip)
Constructs datagram socket for communication over specified proxy.
|
SocksServerSocket(java.net.InetAddress ip,
int port)
Creates ServerSocket capable of accepting one connection
through the firewall, uses default Proxy.
|
SocksServerSocket(Proxy p,
java.net.InetAddress ip,
int port)
Creates ServerSocket capable of accepting one connection
through the firewall, uses given proxy.
|
SocksServerSocket(Proxy p,
java.lang.String host,
int port)
Creates ServerSocket capable of accepting one connection
through the firewall, uses given proxy.
|
SocksServerSocket(java.lang.String host,
int port)
Creates ServerSocket capable of accepting one connection
through the firewall, uses default Proxy.
|
SocksSocket(java.net.InetAddress ip,
int port)
Tryies to connect to given ip and port
using default proxy.
|
SocksSocket(Proxy p,
java.net.InetAddress ip,
int port)
Connects to given ip and port using given Proxy server.
|
SocksSocket(Proxy p,
java.lang.String host,
int port)
Connects to host port using given proxy server.
|
SocksSocket(java.lang.String host,
int port)
Tryies to connect to given host and port
using default proxy.
|
Copyright © 2012. All Rights Reserved.