Access the WriteableByteChannel
Norman Maurer
norman at apache.org
Thu Jan 13 05:28:01 EST 2011
Hi there,
I'm currently porting an old "plain nio" server to netty. So far so
good... On think I have in the "old-api" is something like:
Header.writeTo(WritableByteChannel);
So my question is is it somehow possible to get the
WriteableByteChannel within Netty? I would like to not break the "API"
while doing the other migration stuff.
I understand I could just do something like:
Header.writeTo(Channels.newChannel(ChannelBufferOutputStream(ChannelBuffer);
channel.write(ChannelBuffer)
But I think this will use much more memory then I would like to use ;)
Thx,
Norman
More information about the netty-users
mailing list