public class Socks5LogicHandler extends AbstractSocksLogicHandler
request| 构造器和说明 |
|---|
Socks5LogicHandler(ProxyIoSession proxyIoSession) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
closeSession(java.lang.String message)
Closes the session.
|
void |
doHandshake(IoFilter.NextFilter nextFilter)
Performs the handshake process.
|
protected void |
handleResponse(IoFilter.NextFilter nextFilter,
IoBuffer buf,
int step)
Handle a SOCKS v5 response from the proxy server.
|
void |
messageReceived(IoFilter.NextFilter nextFilter,
IoBuffer buf)
Handles incoming data during the handshake process.
|
closeSession, enqueueWriteRequest, flushPendingWriteRequests, getProxyFilter, getProxyIoSession, getSession, isHandshakeComplete, setHandshakeComplete, writeDatapublic Socks5LogicHandler(ProxyIoSession proxyIoSession)
proxyIoSession - The original sessionAbstractSocksLogicHandler.AbstractSocksLogicHandler(ProxyIoSession)public void doHandshake(IoFilter.NextFilter nextFilter)
nextFilter - the next filterpublic void messageReceived(IoFilter.NextFilter nextFilter, IoBuffer buf)
nextFilter - the next filterbuf - the buffered data receivedprotected void handleResponse(IoFilter.NextFilter nextFilter, IoBuffer buf, int step) throws java.lang.Exception
nextFilter - the next filterbuf - the buffered data receivedstep - the current step in the authentication processjava.lang.Exception - If something went wrongprotected void closeSession(java.lang.String message)
GSSContext is present in the session
then it is closed.closeSession 在类中 AbstractProxyLogicHandlermessage - the error message