Asynchronous Reply to the Same Socket/Channel/Connection
Norman Maurer
norman.maurer at googlemail.com
Thu Sep 22 01:43:56 EDT 2011
Hi there,
I would wrap the Channel in some implementation which hide netty. I do
the same in niosmtp.
So for example:
https://github.com/normanmaurer/niosmtp/blob/master/src/main/java/me/normanmaurer/niosmtp/transport/impl/internal/NettySMTPClientSession.java
Bye,
Norman
2011/9/22 zx spectrum <webakaunt at gmail.com>:
> We receive messages from the socket, defrag them and put the onto an in
> memory queue. Later on some process takes the message from that queue, does
> things with the message, and in some cases it needs to send something back
> using the same Channel / Socket / Connection.
> Messages that are put on the queue are completely decoupled from Netty.
> The process that "does something" with the message is not aware of Netty
> either.
> The question is what would be the most elegant way to send something (back)
> through the same Channel, after the message was handed off to some not Netty
> components?
> 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