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 中用作参数的端口
|
requestType
protocolVersion, type
public 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.