public class DefaultSocks4CommandRequest extends AbstractSocks4Message implements Socks4CommandRequest
Socks4CommandRequest.| Constructor and Description |
|---|
DefaultSocks4CommandRequest(Socks4CommandType type,
String dstAddr,
int dstPort)
Creates a new instance.
|
DefaultSocks4CommandRequest(Socks4CommandType type,
String dstAddr,
int dstPort,
String userId)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
dstAddr()
Returns the
DSTIP field of this request. |
int |
dstPort()
Returns the
DSTPORT field of this request. |
String |
toString() |
Socks4CommandType |
type()
Returns the type of this request.
|
String |
userId()
Returns the
USERID field of this request. |
versiondecoderResult, setDecoderResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitversiondecoderResult, setDecoderResultpublic DefaultSocks4CommandRequest(Socks4CommandType type, String dstAddr, int dstPort)
type - the type of the requestdstAddr - the DSTIP field of the requestdstPort - the DSTPORT field of the requestpublic DefaultSocks4CommandRequest(Socks4CommandType type, String dstAddr, int dstPort, String userId)
type - the type of the requestdstAddr - the DSTIP field of the requestdstPort - the DSTPORT field of the requestuserId - the USERID field of the requestpublic Socks4CommandType type()
Socks4CommandRequesttype in interface Socks4CommandRequestpublic String dstAddr()
Socks4CommandRequestDSTIP field of this request.dstAddr in interface Socks4CommandRequestpublic int dstPort()
Socks4CommandRequestDSTPORT field of this request.dstPort in interface Socks4CommandRequestpublic String userId()
Socks4CommandRequestUSERID field of this request.userId in interface Socks4CommandRequestCopyright © 2008–2015 The Netty Project. All rights reserved.