Sending Message to Pipeline without a reference to any Handlers

Norman Maurer norman.maurer at googlemail.com
Fri Sep 23 08:25:00 EDT 2011


Usually you just use Channel.write(..)

Bye,
Norman


2011/9/23 zx spectrum <webakaunt at gmail.com>:
> What would be a proper way to send a (downstream) message through Netty
> without a reference to a handler, to make sure it will get through all the
> handlers? Would that be it:
>     val channel = bootstrap.getPipelineFactory.getPipeline.getChannel
>     val messageEvent = new DownstreamMessageEvent(
>                                         channel,
>                                         new DefaultChannelFuture( channel,
> true ),
>                                         message,
>                                         bootstrap.getOption( "remoteAddress"
> ).asInstanceOf[InetSocketAddress] )
>     bootstrap.getPipelineFactory.getPipeline.sendDownstream( messageEvent )
> Thank you!
>
>
>
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>



More information about the netty-users mailing list