public interface ChannelAssistant<T>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close(T target)
关闭
|
InetSocketAddress |
getLocalAddress(T target)
获取本地地址
|
InetSocketAddress |
getRemoteAddress(T target)
获取远程地址
|
boolean |
isValid(T target)
是否有效
|
void |
write(T target,
Frame frame)
写入
|
void write(T target, Frame frame) throws IOException
target - 目标frame - 帧IOExceptionboolean isValid(T target)
void close(T target) throws IOException
IOExceptionInetSocketAddress getRemoteAddress(T target) throws IOException
IOExceptionInetSocketAddress getLocalAddress(T target) throws IOException
IOExceptionCopyright © 2024. All rights reserved.