下面列出了怎么用 io.netty.handler.codec.sctp.SctpMessageCompletionHandler 的API类实例代码及写法,或者点击链接到github查看源代码。
@Override
protected void initChannel(SctpChannel ch) throws Exception {
ch.pipeline().addLast(new SctpMessageCompletionHandler(),
new NettySctpServerHandler(this.nettyServerImpl, this.sctpManagementImpl));
}
@Override
protected void initChannel(SctpChannel ch) throws Exception {
ch.pipeline().addLast(new SctpMessageCompletionHandler(), new NettySctpClientHandler(this.nettyAssociationImpl));
}