类 io.netty.handler.codec.socksx.v5.DefaultSocks5PasswordAuthRequest 源码实例Demo

下面列出了怎么用 io.netty.handler.codec.socksx.v5.DefaultSocks5PasswordAuthRequest 的API类实例代码及写法,或者点击链接到github查看源代码。


@Override
protected Future<?> execute() {
    DefaultSocks5PasswordAuthRequest authRequest = new DefaultSocks5PasswordAuthRequest(
            username != null ? username : "", password != null ? password : "");

    addFirstOrReplaceHandler(SOCKS_DECODER_NAME, new Socks5PasswordAuthResponseDecoder());
    return writeToChannel(authRequest);
}
 
 类所在包
 类方法
 同包方法