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() |
versiondecoderResult, setDecoderResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitversiondecoderResult, setDecoderResultpublic 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()
Socks4CommandResponsestatus in interface Socks4CommandResponsepublic String dstAddr()
Socks4CommandResponseDSTIP field of this response.dstAddr in interface Socks4CommandResponsepublic int dstPort()
Socks4CommandResponseDSTPORT field of this response.dstPort in interface Socks4CommandResponseCopyright © 2008–2025 The Netty Project. All rights reserved.