- 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 exception socks.SocksException
-
Get the error code associated with this exception.
- getHost() - Method in class socks.SocksServerSocket
-
Get the name of the host proxy is using to listen for incoming
connection.
- 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.
- getInetAddress() - Method in class socks.Proxy
-
Get the ip address of the proxy server host.
- getInetAddress() - Method in class socks.ProxyMessage
-
Get the Address field of this message as InetAddress object.
- 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.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
- 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.
- getInputStream() - Method in class socks.SocketWrappedChannel
-
- getInputStream() - Method in class socks.SocksSocket
-
Same as Socket
- getLocalAddress() - Method in class socks.Socks5DatagramSocket
-
Address assigned by the proxy, to which datagrams are send for relay.
- 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.
- 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.Socks5DatagramSocket
-
Returns port assigned by the proxy, to which datagrams are relayed.
- 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.SocksSocket
-
Get the port assigned by the proxy for the socket, not
the port on locall machine as in 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.
- getOutputStream() - Method in class socks.SocketWrappedChannel
-
- getOutputStream() - Method in class socks.SocksSocket
-
Same as Socket
- getPassword() - Method in class socks.UserPasswordAuthentication
-
Get password
- getPort() - Method in class socks.Proxy
-
Get the port on which proxy server is running.
- getPort() - Method in class socks.SocksSocket
-
Same as Socket
- getProxy() - Static method in class socks.ProxyServer
-
Get proxy.
- getProxy() - Method in class socks.SocksDialog
-
Displays SOCKS configuartion dialog.
- 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.
- Ident - Class in socks.server
-
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 in socks.server
-
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.
- in - Variable in class socks.Proxy
-
- InetRange - Class in socks
-
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(String) - Method in class socks.Proxy
-
Check wether the given host is on the list of direct address.
- isDirect(InetAddress) - Method in class socks.Proxy
-
Check wether the given host is on the list of direct addresses.
- 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
-
- 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.
- sendMsg(ProxyMessage) - Method in class socks.Proxy
-
Sends the request to SOCKS server
- ServerAuthenticator - Interface in socks.server
-
Classes implementing this interface should provide socks server with
authentication and authorization of users.
- ServerAuthenticatorNone - Class in socks.server
-
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(String, int, String) - Static method in class socks.Proxy
-
Sets SOCKS4 proxy as default.
- setDefaultProxy(InetAddress, int, String) - Static method in class socks.Proxy
-
Sets SOCKS4 proxy as default.
- setDefaultProxy(String, int) - Static method in class socks.Proxy
-
Sets SOCKS5 proxy as default.
- setDefaultProxy(InetAddress, int) - Static method in class socks.Proxy
-
Sets SOCKS5 proxy as default.
- setDefaultProxy(Proxy) - Static method in class socks.Proxy
-
Sets default proxy.
- 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.SocksServerSocket
-
Set Timeout.
- setSoTimeout(int) - Method in class socks.SocksSocket
-
Same as socket.
- 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.
- SocketWrappedChannel - Class in socks
-
- socks - package socks
-
- socks.server - package socks.server
-
- Socks4Proxy - Class in socks
-
Proxy which describes 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
- Socks4Proxy(Proxy, InetAddress, int, String) - Constructor for class socks.Socks4Proxy
-
Creates the SOCKS4 proxy
- Socks4Proxy(InetAddress, int, String) - Constructor for class socks.Socks4Proxy
-
Creates the SOCKS4 proxy
- Socks5DatagramSocket - Class in socks
-
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 in socks
-
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.
- Socks5Proxy(Proxy, InetAddress, int) - Constructor for class socks.Socks5Proxy
-
Creates SOCKS5 proxy.
- Socks5Proxy(InetAddress, int) - Constructor for class socks.Socks5Proxy
-
Creates SOCKS5 proxy.
- 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
-
- SocksDialog - Class in socks
-
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 in socks
-
Exception thrown by various socks classes to indicate errors
with protocol or unsuccessfull server responses.
- SocksException(int) - Constructor for exception socks.SocksException
-
Construct a SocksException with given errorcode.
- SocksException(int, String) - Constructor for exception socks.SocksException
-
Constructs a SocksException with given error code and message.
- SocksServerSocket - Class in socks
-
SocksServerSocket allows to accept connections from one particular
host through the SOCKS4 or SOCKS5 proxy.
- SocksServerSocket(String, int) - Constructor for class socks.SocksServerSocket
-
Creates ServerSocket capable of accepting one connection
through the firewall, uses default Proxy.
- SocksServerSocket(Proxy, String, int) - Constructor for class socks.SocksServerSocket
-
Creates ServerSocket capable of accepting one connection
through the firewall, uses given 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.
- SocksSocket - Class in socks
-
SocksSocket tryies to look very similar to normal Socket,
while allowing connections through the SOCKS4 or 5 proxy.
- SocksSocket(String, int) - Constructor for class socks.SocksSocket
-
Tryies to connect to given host and port
using default proxy.
- SocksSocket(Proxy, String, int) - Constructor for class socks.SocksSocket
-
Connects to host port using given proxy server.
- 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(String, int, Proxy) - Constructor for class socks.SocksSocket
-
These 2 constructors are used by the SocksServerSocket.
- SocksSocket(InetAddress, int, Proxy) - Constructor for class socks.SocksSocket
-
- 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() - Method in class socks.Proxy
-
- 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.
- 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() - Method in class socks.Socks5Proxy
-
- 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.