Modifier and Type | Field and Description |
---|---|
private InputStream | |
private OutputStream | |
private Socket | |
private InetSocketAddress | |
private String | |
private int | |
private boolean |
Access | Constructor and Description |
---|---|
pack-priv | |
pack-priv |
Modifier and Type | Method and Description |
---|---|
protected void | accept(SocketImpl
the accepted connection. s)Overrides java. Accepts a connection. |
private boolean | |
protected void | |
protected void | connect(String
the name of the remote host. host, int the port number. port)Overrides java. Connects this socket to the specified port on the named host. |
protected void | connect(InetAddress
the IP address of the remote host. address, int the port number. port)Overrides java. Connects this socket to the specified port number on the specified host. |
protected void | connect(SocketAddress
the endpoint, int SocketAddress to connect to.the timeout value in milliseconds timeout)Overrides java. Connects the Socks Socket to the specified endpoint. |
private void | |
private synchronized void | |
protected InetAddress | Returns: the value of this socket'saddress field.Overrides java. Returns the value of this socket's |
protected int | Returns: the value of this socket'sport field.Overrides java. Returns the value of this socket's |
private String | |
protected void | listen(int
the maximum length of the queue. backlog)Overrides java. Sets the maximum queue length for incoming connection indications
(a request to connect) to the |
private int | |
private static int | |
pack-priv void | |
private static boolean |
cmdIn | back to summary |
---|---|
private InputStream cmdIn |
cmdOut | back to summary |
---|---|
private OutputStream cmdOut |
cmdsock | back to summary |
---|---|
private Socket cmdsock |
external_address | back to summary |
---|---|
private InetSocketAddress external_address |
server | back to summary |
---|---|
private String server |
serverPort | back to summary |
---|---|
private int serverPort |
useV4 | back to summary |
---|---|
private boolean useV4 |
SocksSocketImpl | back to summary |
---|---|
pack-priv SocksSocketImpl(SocketImpl delegate) |
SocksSocketImpl | back to summary |
---|---|
pack-priv SocksSocketImpl(Proxy proxy, SocketImpl delegate) |
accept | back to summary |
---|---|
protected void accept(SocketImpl s) Overrides java. Doc from java. Accepts a connection.
|
authenticate | back to summary |
---|---|
private boolean authenticate(byte method, InputStream in, BufferedOutputStream out, long deadlineMillis) throws IOException |
close | back to summary |
---|---|
protected void close() throws IOException Overrides java. Doc from java. Closes this socket.
|
connect | back to summary |
---|---|
protected void connect(String host, int port) throws IOException Overrides java. Doc from java. Connects this socket to the specified port on the named host.
|
connect | back to summary |
---|---|
protected void connect(InetAddress address, int port) throws IOException Overrides java. Doc from java. Connects this socket to the specified port number on the specified host.
|
connect | back to summary |
---|---|
protected void connect(SocketAddress endpoint, int timeout) throws IOException Overrides java. Connects the Socks Socket to the specified endpoint. It will first connect to the SOCKS proxy and negotiate the access. If the proxy grants the connections, then the connect is successful and all further traffic will go to the "real" endpoint.
|
connectV4 | back to summary |
---|---|
private void connectV4(InputStream in, OutputStream out, InetSocketAddress endpoint, long deadlineMillis) throws IOException |
doConnect | back to summary |
---|---|
private synchronized void doConnect(final String host, final int port, final int timeout) throws IOException |
getInetAddress | back to summary |
---|---|
protected InetAddress getInetAddress() Overrides java. Returns the value of this socket's
|
getPort | back to summary |
---|---|
protected int getPort() Overrides java. Returns the value of this socket's
|
getUserName | back to summary |
---|---|
private String getUserName() |
listen | back to summary |
---|---|
protected void listen(int backlog) Overrides java. Doc from java. Sets the maximum queue length for incoming connection indications
(a request to connect) to the
|
readSocksReply | back to summary |
---|---|
private int readSocksReply(InputStream in, byte[] data, long deadlineMillis) throws IOException |
remainingMillis | back to summary |
---|---|
private static int remainingMillis(long deadlineMillis) throws IOException |
reset | back to summary |
---|---|
pack-priv void reset() Overrides java.
|
useV4 | back to summary |
---|---|
private static boolean useV4(Proxy proxy) |