Package | Description |
---|---|
fucksocks.client | |
fucksocks.common | |
fucksocks.common.methods | |
fucksocks.server | |
fucksocks.server.msg |
Modifier and Type | Method and Description |
---|---|
Socket |
SocksProxy.accept()
When binded server has income connection, this method will read second response message from
SOCKS server.
|
Socket |
SocksServerSocket.accept()
Accepts a connection.
Notice: This method can be called only once. |
Socket |
Socks5.accept() |
void |
SocksProxy.buildConnection()
Connect SOCKS server using SOCKS protocol.
|
void |
Socks5.buildConnection() |
CommandReplyMesasge |
GenericSocksCommandSender.checkServerReply(InputStream inputStream) |
CommandReplyMesasge |
SocksCommandSender.checkServerReply(InputStream inputStream) |
void |
SocksSocket.connect(SocketAddress endpoint) |
void |
SocksSocket.connect(SocketAddress endpoint,
int timeout) |
void |
SocksSocket.connect(String host,
int port)
Connect to SOCKS Server and server will proxy remote server.
|
SocksMethod |
GenericSocksMethodRequestor.doRequest(List<SocksMethod> acceptableMethods,
Socket socket,
int socksVersion) |
SocksMethod |
SocksMethodRequestor.doRequest(List<SocksMethod> acceptableMethods,
Socket socket,
int socksVersion)
Send request message to server.
|
void |
Socks5DatagramSocket.receive(DatagramPacket packet) |
CommandReplyMesasge |
SocksProxy.requestBind(InetAddress inetAddress,
int port)
This method will send a BIND command to SOKCS server.
|
CommandReplyMesasge |
Socks5.requestBind(InetAddress inetAddress,
int port) |
CommandReplyMesasge |
SocksProxy.requestBind(String host,
int port)
This method will send a BIND command to SOKCS server.
|
CommandReplyMesasge |
Socks5.requestBind(String host,
int port) |
CommandReplyMesasge |
SocksProxy.requestConnect(InetAddress address,
int port)
This method will send a CONNECT command to SOCKS server and ask SOCKS server to connect remote
server.
|
CommandReplyMesasge |
Socks5.requestConnect(InetAddress address,
int port) |
CommandReplyMesasge |
SocksProxy.requestConnect(SocketAddress address)
This method will send a CONNECT command to SOCKS server and ask SOCKS server to connect remote
server.
|
CommandReplyMesasge |
Socks5.requestConnect(SocketAddress address) |
CommandReplyMesasge |
SocksProxy.requestConnect(String host,
int port)
This method will send a CONNECT command to SOCKS server and ask SOCKS server to connect remote
server.
|
CommandReplyMesasge |
Socks5.requestConnect(String host,
int port) |
CommandReplyMesasge |
SocksProxy.requestUdpAssociat(InetAddress address,
int port)
This method will send a UDP ASSOCIAT command to SOCKS server and ask SOCKS server to establish
a relay server.
|
CommandReplyMesasge |
Socks5.requestUdpAssociat(InetAddress address,
int port) |
CommandReplyMesasge |
SocksProxy.requestUdpAssociat(String host,
int port)
This method will send a UDP ASSOCIAT command to SOCKS server and ask SOCKS server to establish
a relay server.
|
CommandReplyMesasge |
Socks5.requestUdpAssociat(String host,
int port) |
void |
Socks5DatagramSocket.send(DatagramPacket packet) |
CommandReplyMesasge |
GenericSocksCommandSender.send(Socket socket,
SocksCommand command,
InetAddress address,
int port,
int version) |
CommandReplyMesasge |
SocksCommandSender.send(Socket socket,
SocksCommand command,
InetAddress address,
int port,
int version)
Send a command to SOCKS server.
|
CommandReplyMesasge |
GenericSocksCommandSender.send(Socket socket,
SocksCommand command,
SocketAddress socketAddress,
int version) |
CommandReplyMesasge |
SocksCommandSender.send(Socket socket,
SocksCommand command,
SocketAddress address,
int version)
Send a command to SOCKS server.
|
CommandReplyMesasge |
GenericSocksCommandSender.send(Socket socket,
SocksCommand command,
String host,
int port,
int version) |
CommandReplyMesasge |
SocksCommandSender.send(Socket socket,
SocksCommand command,
String host,
int port,
int version)
Send a command to SOCKS server and resolve domain name in SOCKS server.
|
Constructor and Description |
---|
Socks5DatagramSocket(SocksProxy proxy)
Constructs a datagram socket with a
SocksProxy . |
SocksServerSocket(SocksProxy proxy,
InetAddress inetAddress,
int port)
Constructs a server socket.
|
SocksSocket(SocksProxy proxy,
InetAddress address,
int port)
|
SocksSocket(SocksProxy proxy,
SocketAddress socketAddress) |
SocksSocket(SocksProxy proxy,
String remoteServerHost,
int remoteServerPort)
Create a socket and connect SOCKS Server.
|
Modifier and Type | Class and Description |
---|---|
class |
AuthenticationException
The class
AuthenticationException represents a authentication exception. |
class |
ProtocolErrorException
The class
ProtocolErrorException will be threw when there is a SOCKS protocol error. |
Modifier and Type | Method and Description |
---|---|
static SocksException |
SocksException.noAcceptableMethods()
Returns a
SocksException instance with a message "NO ACCEPTABLE METHODS". |
static SocksException |
SocksException.protocolNotSupported()
Returns a
SocksException instance with a message "Protocol not supported". |
static SocksException |
SocksException.serverReplyException(byte reply)
Returns a
SocksException instance with a message of reply. |
static SocksException |
SocksException.serverReplyException(ServerReply reply)
Returns a
SocksException instance with a message of reply. |
Modifier and Type | Method and Description |
---|---|
void |
DatagramPacketDecapsulation.decapsulate(DatagramPacket packet)
Decapsulates a datagram packet.
|
void |
Socks5DatagramPacketHandler.decapsulate(DatagramPacket packet) |
DatagramPacket |
DatagramPacketEncapsulation.encapsulate(DatagramPacket packet,
SocketAddress destination)
Encapsulates a datagram packet.
|
DatagramPacket |
Socks5DatagramPacketHandler.encapsulate(DatagramPacket packet,
SocketAddress destination) |
Modifier and Type | Method and Description |
---|---|
void |
NoAcceptableMethod.doMethod(Session session) |
void |
GssApiMethod.doMethod(Session session) |
void |
NoAuthencationRequiredMethod.doMethod(Session session) |
void |
UsernamePasswordMethod.doMethod(Session session) |
void |
SocksMethod.doMethod(Session session)
Do method job.
|
void |
NoAcceptableMethod.doMethod(SocksProxy socksProxy) |
void |
GssApiMethod.doMethod(SocksProxy socksProxy) |
void |
NoAuthencationRequiredMethod.doMethod(SocksProxy socksProxy) |
void |
UsernamePasswordMethod.doMethod(SocksProxy socksProxy)
Do authentication.
|
void |
SocksMethod.doMethod(SocksProxy socksProxy)
Do method job.
|
Modifier and Type | Method and Description |
---|---|
void |
Socks5Handler.doBind(Session session,
CommandMessage commandMessage) |
void |
SocksHandler.doBind(Session session,
CommandMessage commandMessage)
Do BIND command.
|
void |
Socks5Handler.doConnect(Session session,
CommandMessage commandMessage) |
void |
SocksHandler.doConnect(Session session,
CommandMessage commandMessage)
Do CONNECTE command.
|
void |
Socks5Handler.doUDPAssociate(Session session,
CommandMessage commandMessage) |
void |
SocksHandler.doUDPAssociate(Session session,
CommandMessage commandMessage)
Do UDP ASSOCIATE command.
|
int |
Session.read(byte[] byetes)
Read a buffer.
|
int |
SocksSession.read(byte[] byetes) |
int |
Session.read(ReadableMessage message)
Reads a message.
|
int |
SocksSession.read(ReadableMessage message) |
void |
Session.write(byte[] bytes)
Writes bytes in output stream.
|
void |
SocksSession.write(byte[] bytes) |
void |
Session.write(byte[] bytes,
int offset,
int length)
Writes bytes in output stream.
|
void |
SocksSession.write(byte[] bytes,
int offset,
int length) |
void |
Session.write(WritableMessage message)
Writes
Message in output stream. |
void |
SocksSession.write(WritableMessage message) |
Modifier and Type | Method and Description |
---|---|
SocksException |
CommandMessage.getSocksException() |
Modifier and Type | Method and Description |
---|---|
void |
CommandMessage.setSocksException(SocksException socksException) |
Modifier and Type | Method and Description |
---|---|
void |
ReadableMessage.read(InputStream inputStream)
Read message from a input stream.
|
void |
MethodSelectionMessage.read(InputStream inputStream) |
void |
CommandMessage.read(InputStream inputStream) |
void |
UsernamePasswordMessage.read(InputStream inputStream) |
Copyright © 2015. All rights reserved.