public class TcpChannel extends Object
| 构造器和说明 |
|---|
TcpChannel(io.netty.channel.Channel channel,
ProtocolHandler protocol,
DynamicProtocolChannelHandler channelHandler) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> io.netty.util.Attribute<T> |
attr(io.netty.util.AttributeKey<T> key) |
io.netty.channel.ChannelFuture |
close() |
io.netty.channel.Channel |
getChannel() |
DynamicProtocolChannelHandler |
getChannelHandler() |
static Map<io.netty.channel.ChannelId,TcpChannel> |
getChannels() |
ProtocolHandler |
getProtocol() |
String |
getProtocolName() |
boolean |
isActive() |
SocketAddress |
remoteAddress() |
String |
toString() |
io.netty.channel.ChannelFuture |
writeAndFlush(byte[] msg) |
io.netty.channel.ChannelFuture |
writeAndFlush(io.netty.buffer.ByteBuf byteBuf) |
io.netty.channel.ChannelFuture |
writeAndFlush(String msg,
Charset charset) |
public TcpChannel(io.netty.channel.Channel channel,
ProtocolHandler protocol,
DynamicProtocolChannelHandler channelHandler)
public static Map<io.netty.channel.ChannelId,TcpChannel> getChannels()
public String getProtocolName()
public io.netty.channel.Channel getChannel()
public DynamicProtocolChannelHandler getChannelHandler()
public ProtocolHandler getProtocol()
public boolean isActive()
public io.netty.channel.ChannelFuture writeAndFlush(byte[] msg)
public io.netty.channel.ChannelFuture writeAndFlush(io.netty.buffer.ByteBuf byteBuf)
public io.netty.channel.ChannelFuture close()
public SocketAddress remoteAddress()
public <T> io.netty.util.Attribute<T> attr(io.netty.util.AttributeKey<T> key)
Copyright © 2021. All rights reserved.