public class DefaultSocks4CommandResponse extends AbstractSocks4Message implements Socks4CommandResponse
Socks4CommandResponse
.Constructor and Description |
---|
DefaultSocks4CommandResponse(Socks4CommandStatus status)
Creates a new instance.
|
DefaultSocks4CommandResponse(Socks4CommandStatus status,
String dstAddr,
int dstPort)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
dstAddr()
Returns the
DSTIP field of this response. |
int |
dstPort()
Returns the
DSTPORT field of this response. |
Socks4CommandStatus |
status()
Returns the status of this response.
|
String |
toString() |
version
decoderResult, setDecoderResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
version
decoderResult, setDecoderResult
public DefaultSocks4CommandResponse(Socks4CommandStatus status)
status
- the status of the responsepublic DefaultSocks4CommandResponse(Socks4CommandStatus status, String dstAddr, int dstPort)
status
- the status of the responsedstAddr
- the DSTIP
field of the responsedstPort
- the DSTPORT
field of the responsepublic Socks4CommandStatus status()
Socks4CommandResponse
status
in interface Socks4CommandResponse
public String dstAddr()
Socks4CommandResponse
DSTIP
field of this response.dstAddr
in interface Socks4CommandResponse
public int dstPort()
Socks4CommandResponse
DSTPORT
field of this response.dstPort
in interface Socks4CommandResponse
Copyright © 2008–2017 The Netty Project. All rights reserved.