public final class SocksCmdRequest extends SocksRequest
| Constructor and Description |
|---|
SocksCmdRequest(SocksCmdType cmdType, SocksAddressType addressType, java.lang.String host, int port) |
| Modifier and Type | Method and Description |
|---|---|
SocksAddressType |
addressType()
|
SocksCmdType |
cmdType()
|
void |
encodeAsByteBuf(ByteBuf byteBuf) |
java.lang.String |
host()
返回在 SocksCmdType中用作参数的主机
|
int |
port()
返回在 SocksCmdType中用作参数的端口
|
requestTypeprotocolVersion, typepublic SocksCmdRequest(SocksCmdType cmdType, SocksAddressType addressType, java.lang.String host, int port)
public SocksCmdType cmdType()
public SocksAddressType addressType()
public java.lang.String host()
SocksCmdType中用作参数的主机
SocksCmdType中用作参数的主机
public int port()
SocksCmdType中用作参数的端口
SocksCmdType中用作参数的端口
public void encodeAsByteBuf(ByteBuf byteBuf)
encodeAsByteBuf在课堂上
SocksMessage
Copyright © 2008–2018 The Netty Project. All rights reserved.