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() |
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, 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()
Socks4CommandResponse
status
在接口中 Socks4CommandResponse
public java.lang.String dstAddr()
Socks4CommandResponse
DSTIP
field of this response.dstAddr
在接口中 Socks4CommandResponse
public int dstPort()
Socks4CommandResponse
DSTPORT
field of this response.dstPort
在接口中 Socks4CommandResponse
public java.lang.String toString()
toString
在类中 java.lang.Object