public class DefaultSocks4CommandResponse extends AbstractSocks4Message implements Socks4CommandResponse
Socks4CommandResponse.| 构造器和说明 |
|---|
DefaultSocks4CommandResponse(Socks4CommandStatus status)
Creates a new instance.
|
DefaultSocks4CommandResponse(Socks4CommandStatus status,
java.lang.String dstAddr,
int dstPort)
Creates a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.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.
|
java.lang.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, java.lang.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 在接口中 Socks4CommandResponsepublic java.lang.String dstAddr()
Socks4CommandResponseDSTIP field of this response.dstAddr 在接口中 Socks4CommandResponsepublic int dstPort()
Socks4CommandResponseDSTPORT field of this response.dstPort 在接口中 Socks4CommandResponsepublic java.lang.String toString()
toString 在类中 java.lang.Object