A C D E G H I M P R S T U V W

A

accept() - Method in class socks.SocksServerSocket
Accepts the incoming connection.
actionPerformed(ActionEvent) - Method in class socks.SocksDialog
 
add(InetAddress) - Method in class socks.InetRange
Adds another ip for this range.
add(InetAddress, InetAddress) - Method in class socks.InetRange
Adds another range of ips for this range.Any host with ip address greater than or equal to the address of from and smaller than or equal to the address of to will be included in the range.
add(InetRange, Hashtable) - Method in class socks.server.IdentAuthenticator
Adds range of addresses from which connection is allowed.
add(String) - Method in class socks.InetRange
Adds another host or range to this range.
addDirect(InetAddress) - Method in class socks.Proxy
Adds given ip to the list of direct addresses.
addDirect(InetAddress, InetAddress) - Method in class socks.Proxy
Adds given range of addresses to the lsit of direct addresses, machines within this range will be accessed without using proxy.
addDirect(String) - Method in class socks.Proxy
Adds host to the list of direct addresses.
Authentication - interface socks.Authentication.
The Authentication interface provides for performing method specific authentication for SOCKS5 connections.
AuthenticationNone - class socks.AuthenticationNone.
SOCKS5 none authentication.
AuthenticationNone() - Constructor for class socks.AuthenticationNone
 

C

checkRequest(DatagramPacket, boolean) - Method in interface socks.server.ServerAuthenticator
This method is called when datagram is received by the server.
checkRequest(DatagramPacket, boolean) - Method in class socks.server.ServerAuthenticatorNone
Allways returns true.
checkRequest(ProxyMessage) - Method in interface socks.server.ServerAuthenticator
This method is called when a request have been read.
checkRequest(ProxyMessage) - Method in class socks.server.ServerAuthenticatorNone
Allways returns true.
checkRequest(ProxyMessage, Socket) - Method in class socks.server.IdentAuthenticator
For SOCKS5 requests allways returns true.
clone() - Method in class socks.Socks4Proxy
Creates a clone of this proxy.
clone() - Method in class socks.InetRange
Creates a clone of this Object
clone() - Method in class socks.Socks5Proxy
Creates a clone of this Proxy.
close() - Method in class socks.SocksSocket
Same as Socket
close() - Method in class socks.SocksServerSocket
Closes the connection to proxy if socket have not been accepted, if the direct connection is used, closes direct ServerSocket.
close() - Method in class socks.Socks5DatagramSocket
Closes datagram socket, and proxy connection.
command - Variable in class socks.ProxyMessage
Request/response code as an int
connectionTimeout - Static variable in class socks.server.Ident
Maximum amount of time we should wait before dropping the connection to identd server.Setting it to 0 implies infinit timeout.
contains(InetAddress) - Method in class socks.InetRange
Checks wether the given ip is in the range.
contains(String) - Method in class socks.InetRange
Checks wether the givan host is in the range.
contains(String, boolean) - Method in class socks.InetRange
Checks wether the given host is in the range.

D

doSocksAuthentication(int, Socket) - Method in class socks.UserPasswordAuthentication
Does User/Password authentication as defined in rfc1929.
doSocksAuthentication(int, Socket) - Method in class socks.AuthenticationNone
 
doSocksAuthentication(int, Socket) - Method in interface socks.Authentication
This method is called when SOCKS5 server have selected a particular authentication method, for whch an implementaion have been registered.

E

endSession() - Method in interface socks.server.ServerAuthenticator
This method is called when session is completed.
endSession() - Method in class socks.server.ServerAuthenticatorNone
Does nothing.
ERR_NO_CONNECT - Static variable in class socks.server.Ident
Identd on port 113 can't be contacted
ERR_PROTOCOL - Static variable in class socks.server.Ident
Identd daemon responded with ERROR, in this case errorMessage contains the string explanation, as send by the daemon.
ERR_PROTOCOL_INCORRECT - Static variable in class socks.server.Ident
When parsing server response protocol error happened.
ERR_TIMEOUT - Static variable in class socks.server.Ident
Connection timed out
errorCode - Variable in class socks.server.Ident
Error code
errorMessage - Variable in class socks.server.Ident
Error Message can be null.

G

getAll() - Method in class socks.InetRange
Get all entries in the range as strings.
getAuthenticationMethod(int) - Method in class socks.Socks5Proxy
Get authentication method, which corresponds to given method id
getChainProxy() - Method in class socks.Proxy
Get proxy which is used to connect to this proxy.
getDefaultProxy() - Static method in class socks.Proxy
Get current default proxy.
getDirect() - Method in class socks.Proxy
Get the list of direct hosts.
getErrorCode() - Method in class socks.SocksException
Get the error code associated with this exception.
getHost() - Method in class socks.SocksSocket
Returns remote host name, it is usefull in cases when addresses are resolved by proxy, and we can't create InetAddress object.
getHost() - Method in class socks.SocksServerSocket
Get the name of the host proxy is using to listen for incoming connection.
getInetAddress() - Method in class socks.SocksSocket
Get remote host as InetAddress object, might return null if addresses are resolved by proxy, and it is not possible to resolve it locally
getInetAddress() - Method in class socks.Proxy
Get the ip address of the proxy server host.
getInetAddress() - Method in class socks.SocksServerSocket
Get address assigned by proxy to listen for incomming connections, or the local machine address if doing direct connection.
getInetAddress() - Method in class socks.ProxyMessage
Get the Address field of this message as InetAddress object.
getInputStream() - Method in class socks.SocksSocket
Same as Socket
getInputStream() - Method in interface socks.server.ServerAuthenticator
This method should return input stream which should be used on the accepted socket.
getInputStream() - Method in class socks.server.ServerAuthenticatorNone
Get input stream.
getLocalAddress() - Method in class socks.SocksSocket
Get address assigned by proxy to make a remote connection, it might be different from the host specified for the proxy.
getLocalAddress() - Method in class socks.Socks5DatagramSocket
Address assigned by the proxy, to which datagrams are send for relay.
getLocalHost() - Method in class socks.SocksSocket
Get name of the host, proxy has assigned to make a remote connection for this socket.
getLocalPort() - Method in class socks.SocksSocket
Get the port assigned by the proxy for the socket, not the port on locall machine as in Socket.
getLocalPort() - Method in class socks.SocksServerSocket
Get port assigned by proxy to listen for incoming connections, or the port chosen by local system, if accepting directly.
getLocalPort() - Method in class socks.Socks5DatagramSocket
Returns port assigned by the proxy, to which datagrams are relayed.
getOutputStream() - Method in class socks.SocksSocket
Same as Socket
getOutputStream() - Method in interface socks.server.ServerAuthenticator
This method should return output stream to use to write to the accepted socket.
getOutputStream() - Method in class socks.server.ServerAuthenticatorNone
Get output stream.
getPassword() - Method in class socks.UserPasswordAuthentication
Get password
getPort() - Method in class socks.SocksSocket
Same as Socket
getPort() - Method in class socks.Proxy
Get the port on which proxy server is running.
getProxy() - Method in class socks.SocksDialog
Displays SOCKS configuartion dialog.
getProxy() - Static method in class socks.ProxyServer
Get proxy.
getProxy(Proxy) - Method in class socks.SocksDialog
Initialises dialog to given proxy and displays SOCKS configuartion dialog.
getSoLinger(int) - Method in class socks.SocksSocket
Same as socket.
getSoTimeout(int) - Method in class socks.SocksSocket
Same as socket.
getTcpNoDelay() - Method in class socks.SocksSocket
Same as socket.
getUdpEncapsulation() - Method in interface socks.server.ServerAuthenticator
This method should return UDPEncapsulation, which should be used on the datagrams being send in/out.
getUdpEncapsulation() - Method in class socks.server.ServerAuthenticatorNone
Allways returns null.
getUser() - Method in class socks.UserPasswordAuthentication
Get the user name.

H

host - Variable in class socks.ProxyMessage
Host as string.
hostType - Variable in class socks.server.Ident
Host type as returned by daemon, can be null, if error happened

I

Ident - class socks.server.Ident.
Class Ident provides means to obtain user name of the owner of the socket on remote machine, providing remote machine runs identd daemon.
Ident(Socket) - Constructor for class socks.server.Ident
Constructor tries to connect to Identd daemon on the host of the given socket, and retrieve user name of the owner of given socket connection on remote machine.
IdentAuthenticator - class socks.server.IdentAuthenticator.
An implementation of socks.ServerAuthentication which provides simple authentication based on the host from which the connection is made and the name of the user on the remote machine, as reported by identd daemon on the remote machine.
IdentAuthenticator() - Constructor for class socks.server.IdentAuthenticator
Constructs empty IdentAuthenticator.
InetRange - class socks.InetRange.
Class InetRange provides the means of defining the range of inetaddresses.
InetRange() - Constructor for class socks.InetRange
Creates the empty range.
ip - Variable in class socks.ProxyMessage
Host as an IP address
isDirect(InetAddress) - Method in class socks.Proxy
Check wether the given host is on the list of direct addresses.
isDirect(String) - Method in class socks.Proxy
Check wether the given host is on the list of direct address.
isProxyAlive(int) - Method in class socks.Socks5DatagramSocket
This method checks wether proxy still runs udp forwarding service for this socket.
isUserValid(String, String, Socket) - Method in interface socks.server.UserValidation
Implementations of this interface are expected to use some or all of the information provided plus any information they can extract from other sources to decide wether given user should be allowed access to SOCKS server, or whatever you use it for.
itemStateChanged(ItemEvent) - Method in class socks.SocksDialog
 

M

METHOD_ID - Static variable in class socks.UserPasswordAuthentication
SOCKS ID for User/Password authentication method

P

parseProxy(String) - Static method in class socks.Proxy
Parses strings in the form: host[:port:user:password], and creates proxy from information obtained from parsing.
port - Variable in class socks.ProxyMessage
Port field of the request/response
Proxy - class socks.Proxy.
Abstract class Proxy, base for classes Socks4Proxy and Socks5Proxy.
ProxyMessage - class socks.ProxyMessage.
Abstract class which describes SOCKS4/5 response/request.
ProxyServer - class socks.ProxyServer.
SOCKS4 and SOCKS5 proxy, handles both protocols simultaniously.
ProxyServer(ServerAuthenticator) - Constructor for class socks.ProxyServer
Creates a proxy server with given Authentication scheme.

R

read(InputStream) - Method in class socks.ProxyMessage
Initialises Message from the stream.
read(InputStream, boolean) - Method in class socks.ProxyMessage
Initialises Message from the stream.
receive(DatagramPacket) - Method in class socks.Socks5DatagramSocket
Receives udp packet.
remove(String) - Method in class socks.InetRange
Removes an entry from this range.
resolveAddrLocally() - Method in class socks.Socks5Proxy
Get current setting on how the addresses should be handled.
resolveAddrLocally(boolean) - Method in class socks.Socks5Proxy
Wether to resolve address locally or to let proxy do so.
run() - Method in class socks.SocksDialog
Resolves proxy address in other thread, to avoid annoying blocking in GUI thread.
run() - Method in class socks.ProxyServer
 

S

selectSocks5Authentication(InputStream, OutputStream, int) - Static method in class socks.server.ServerAuthenticatorNone
Convinience routine for selecting SOCKSv5 authentication.
send(DatagramPacket) - Method in class socks.Socks5DatagramSocket
Sends the Datagram either through the proxy or directly depending on current proxy settings and destination address.
send(DatagramPacket, String) - Method in class socks.Socks5DatagramSocket
This method allows to send datagram packets with address type DOMAINNAME.
ServerAuthenticator - interface socks.server.ServerAuthenticator.
Classes implementing this interface should provide socks server with authentication and authorization of users.
ServerAuthenticatorNone - class socks.server.ServerAuthenticatorNone.
An implementation of ServerAuthenticator, which does not do any authentication.
ServerAuthenticatorNone() - Constructor for class socks.server.ServerAuthenticatorNone
Creates new instance of the ServerAuthenticatorNone.
ServerAuthenticatorNone(InputStream, OutputStream) - Constructor for class socks.server.ServerAuthenticatorNone
Constructs new ServerAuthenticatorNone object suitable for returning from the startSession function.
setAcceptTimeout(int) - Static method in class socks.ProxyServer
Sets the timeout for BIND command, how long the server should wait for the incoming connection.
Zero timeout implies infinity.
Default timeout is 3 minutes.
setAuthenticationMethod(int, Authentication) - Method in class socks.Socks5Proxy
Adds another authentication method.
setChainProxy(Proxy) - Method in class socks.Proxy
Set the proxy which should be used to connect to given proxy.
setDatagramSize(int) - Static method in class socks.ProxyServer
Sets the size of the datagrams used in the UDPRelayServer.
Default size is 64K, a bit more than maximum possible size of the datagram.
setDefaultProxy(InetAddress, int) - Static method in class socks.Proxy
Sets SOCKS5 proxy as default.
setDefaultProxy(InetAddress, int, String) - Static method in class socks.Proxy
Sets SOCKS4 proxy as default.
setDefaultProxy(Proxy) - Static method in class socks.Proxy
Sets default proxy.
setDefaultProxy(String, int) - Static method in class socks.Proxy
Sets SOCKS5 proxy as default.
setDefaultProxy(String, int, String) - Static method in class socks.Proxy
Sets SOCKS4 proxy as default.
setDirect(InetRange) - Method in class socks.Proxy
Sets given InetRange as the list of direct address, previous list will be discarded, any changes done previously with addDirect(Inetaddress) will be lost.
setIddleTimeout(int) - Static method in class socks.ProxyServer
Sets the timeout for connections, how long shoud server wait for data to arrive before dropping the connection.
Zero timeout implies infinity.
Default timeout is 3 minutes.
setLog(OutputStream) - Static method in class socks.ProxyServer
Set the logging stream.
setProxy(Proxy) - Static method in class socks.ProxyServer
Set proxy.
setSoLinger(boolean, int) - Method in class socks.SocksSocket
Same as socket.
setSoTimeout(int) - Method in class socks.SocksSocket
Same as socket.
setSoTimeout(int) - Method in class socks.SocksServerSocket
Set Timeout.
setTcpNoDelay(boolean) - Method in class socks.SocksSocket
Same as socket.
setUDPTimeout(int) - Static method in class socks.ProxyServer
Sets the timeout for UDPRelay server.
Zero timeout implies infinity.
Default timeout is 3 minutes.
socks - package socks
 
SOCKS_ADDR_NOT_SUPPORTED - Static variable in class socks.Proxy
 
SOCKS_AUTH_FAILURE - Static variable in class socks.Proxy
 
SOCKS_AUTH_NOT_SUPPORTED - Static variable in class socks.Proxy
 
SOCKS_BADCONNECT - Static variable in class socks.Proxy
 
SOCKS_BADNETWORK - Static variable in class socks.Proxy
 
SOCKS_CMD_NOT_SUPPORTED - Static variable in class socks.Proxy
 
SOCKS_CONNECTION_REFUSED - Static variable in class socks.Proxy
 
SOCKS_DIRECT_FAILED - Static variable in class socks.Proxy
 
SOCKS_FAILURE - Static variable in class socks.Proxy
 
SOCKS_HOST_UNREACHABLE - Static variable in class socks.Proxy
 
SOCKS_JUST_ERROR - Static variable in class socks.Proxy
 
SOCKS_METHOD_NOTSUPPORTED - Static variable in class socks.Proxy
 
SOCKS_NO_PROXY - Static variable in class socks.Proxy
 
SOCKS_PROXY_IO_ERROR - Static variable in class socks.Proxy
 
SOCKS_PROXY_NO_CONNECT - Static variable in class socks.Proxy
 
SOCKS_SUCCESS - Static variable in class socks.Proxy
 
SOCKS_TTL_EXPIRE - Static variable in class socks.Proxy
 
socks.server - package socks.server
 
Socks4Proxy - class socks.Socks4Proxy.
Proxy which describes SOCKS4 proxy.
Socks4Proxy(InetAddress, int, String) - Constructor for class socks.Socks4Proxy
Creates the SOCKS4 proxy
Socks4Proxy(Proxy, InetAddress, int, String) - Constructor for class socks.Socks4Proxy
Creates the SOCKS4 proxy
Socks4Proxy(Proxy, String, int, String) - Constructor for class socks.Socks4Proxy
Creates the SOCKS4 proxy
Socks4Proxy(String, int, String) - Constructor for class socks.Socks4Proxy
Creates the SOCKS4 proxy
Socks5DatagramSocket - class socks.Socks5DatagramSocket.
Datagram socket to interract through the firewall.
Can be used same way as the normal DatagramSocket.
Socks5DatagramSocket() - Constructor for class socks.Socks5DatagramSocket
Construct Datagram socket for communication over SOCKS5 proxy server.
Socks5DatagramSocket(int) - Constructor for class socks.Socks5DatagramSocket
Construct Datagram socket for communication over SOCKS5 proxy server.
Socks5DatagramSocket(int, InetAddress) - Constructor for class socks.Socks5DatagramSocket
Construct Datagram socket for communication over SOCKS5 proxy server.
Socks5DatagramSocket(Proxy, int, InetAddress) - Constructor for class socks.Socks5DatagramSocket
Constructs datagram socket for communication over specified proxy.
Socks5Proxy - class socks.Socks5Proxy.
SOCKS5 Proxy.
Socks5Proxy(InetAddress, int) - Constructor for class socks.Socks5Proxy
Creates SOCKS5 proxy.
Socks5Proxy(Proxy, InetAddress, int) - Constructor for class socks.Socks5Proxy
Creates SOCKS5 proxy.
Socks5Proxy(Proxy, String, int) - Constructor for class socks.Socks5Proxy
Creates SOCKS5 proxy.
Socks5Proxy(String, int) - Constructor for class socks.Socks5Proxy
Creates SOCKS5 proxy.
SocksDialog - class socks.SocksDialog.
Socks configuration dialog.
Class which provides GUI means of getting Proxy configuration from the user.
SocksDialog(Frame) - Constructor for class socks.SocksDialog
Creates SOCKS configuration dialog.
Uses default initialisation:
Proxy host: socks-proxy
Proxy port: 1080
Version: 5
SocksDialog(Frame, Proxy) - Constructor for class socks.SocksDialog
Creates SOCKS configuration dialog and initialises it to given proxy.
SocksException - exception socks.SocksException.
Exception thrown by various socks classes to indicate errors with protocol or unsuccessfull server responses.
SocksException(int) - Constructor for class socks.SocksException
Construct a SocksException with given errorcode.
SocksException(int, String) - Constructor for class socks.SocksException
Constructs a SocksException with given error code and message.
SocksServerSocket - class socks.SocksServerSocket.
SocksServerSocket allows to accept connections from one particular host through the SOCKS4 or SOCKS5 proxy.
SocksServerSocket(InetAddress, int) - Constructor for class socks.SocksServerSocket
Creates ServerSocket capable of accepting one connection through the firewall, uses default Proxy.
SocksServerSocket(Proxy, InetAddress, int) - Constructor for class socks.SocksServerSocket
Creates ServerSocket capable of accepting one connection through the firewall, uses given proxy.
SocksServerSocket(Proxy, String, int) - Constructor for class socks.SocksServerSocket
Creates ServerSocket capable of accepting one connection through the firewall, uses given proxy.
SocksServerSocket(String, int) - Constructor for class socks.SocksServerSocket
Creates ServerSocket capable of accepting one connection through the firewall, uses default Proxy.
SocksSocket - class socks.SocksSocket.
SocksSocket tryies to look very similar to normal Socket, while allowing connections through the SOCKS4 or 5 proxy.
SocksSocket(InetAddress, int) - Constructor for class socks.SocksSocket
Tryies to connect to given ip and port using default proxy.
SocksSocket(Proxy, InetAddress, int) - Constructor for class socks.SocksSocket
Connects to given ip and port using given Proxy server.
SocksSocket(Proxy, String, int) - Constructor for class socks.SocksSocket
Connects to host port using given proxy server.
SocksSocket(String, int) - Constructor for class socks.SocksSocket
Tryies to connect to given host and port using default proxy.
start(int) - Method in class socks.ProxyServer
Start the Proxy server at given port.
This methods blocks.
start(int, int, InetAddress) - Method in class socks.ProxyServer
Create a server with the specified port, listen backlog, and local IP address to bind to.
startSession(Socket) - Method in interface socks.server.ServerAuthenticator
This method is called when a new connection accepted by the server.
startSession(Socket) - Method in class socks.server.ServerAuthenticatorNone
Grants access to everyone.Removes authentication related bytes from the stream, when a SOCKS5 connection is being made, selects an authentication NONE.
startSession(Socket) - Method in class socks.server.UserPasswordAuthenticator
 
startSession(Socket) - Method in class socks.server.IdentAuthenticator
Grants permission only to those users, who connect from one of the hosts registered with add(InetRange,Hashtable) and whose names, as reported by identd daemon, are listed for the host the connection came from.
stop() - Method in class socks.ProxyServer
Stop server operation.It would be wise to interrupt thread running the server afterwards.
successful - Variable in class socks.server.Ident
If this is true then userName and hostType contain valid values.

T

toString() - Method in class socks.SocksSocket
Get string representation of the socket.
toString() - Method in class socks.Proxy
Get string representation of this proxy.
toString() - Method in class socks.SocksException
Get human readable representation of this exception.
toString() - Method in class socks.InetRange
Get string representaion of this Range.
toString() - Method in class socks.ProxyMessage
Get string representaion of this message.
toString() - Method in class socks.server.IdentAuthenticator
Get String representaion of the IdentAuthenticator.

U

udpEncapsulate(byte[], boolean) - Method in interface socks.UDPEncapsulation
This method should provide any authentication depended transformation on datagrams being send from/to the client.
UDPEncapsulation - interface socks.UDPEncapsulation.
This interface provides for datagram encapsulation for SOCKSv5 protocol.
user - Variable in class socks.ProxyMessage
User field for SOCKS4 request messages
userName - Variable in class socks.server.Ident
User name as returned by the identd daemon, or null, if it failed
UserPasswordAuthentication - class socks.UserPasswordAuthentication.
SOCKS5 User Password authentication scheme.
UserPasswordAuthentication(String, String) - Constructor for class socks.UserPasswordAuthentication
Create an instance of UserPasswordAuthentication.
UserPasswordAuthenticator - class socks.server.UserPasswordAuthenticator.
This class implements SOCKS5 User/Password authentication scheme as defined in rfc1929,the server side of it.
UserPasswordAuthenticator(UserValidation) - Constructor for class socks.server.UserPasswordAuthenticator
Construct a new UserPasswordAuthentication object, with given UserVlaidation scheme.
UserValidation - interface socks.server.UserValidation.
Interface which provides for user validation, based on user name password and where it connects from.
useThreads - Static variable in class socks.SocksDialog
Wether to resolve addresses in separate thread.

V

version - Variable in class socks.ProxyMessage
SOCKS version, or version of the response for SOCKS4

W

windowActivated(WindowEvent) - Method in class socks.SocksDialog
 
windowClosed(WindowEvent) - Method in class socks.SocksDialog
 
windowClosing(WindowEvent) - Method in class socks.SocksDialog
 
windowDeactivated(WindowEvent) - Method in class socks.SocksDialog
 
windowDeiconified(WindowEvent) - Method in class socks.SocksDialog
 
windowIconified(WindowEvent) - Method in class socks.SocksDialog
 
windowOpened(WindowEvent) - Method in class socks.SocksDialog
 
write(OutputStream) - Method in class socks.ProxyMessage
Writes the message to the stream.

A C D E G H I M P R S T U V W