private void doJoin(final ChannelFuture bindFuture, final DatagramChannel channel, final NetworkInterface interf,
final InetSocketAddress address, final ChannelPromise promise) {
channel.eventLoop().execute(new Runnable() {
@Override
public void run() {
LOGGER.entry(bindFuture, channel, interf, address, promise);
if (bindFuture.isSuccess()) {
LOGGER.debug("joining group {} with {} using {} and promise {}", address, interf, channel, promise);
channel.joinGroup(address, interf, promise);
} else {
promise.setFailure(bindFuture.cause());
}
LOGGER.exit();
}
});
}
UDPMulticastChannelFactory.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:dnd
作者:
评论列表
文章目录