send table of double
Trustin Lee
tlee at redhat.com
Tue Dec 9 02:02:47 EST 2008
What nixter is asking might be how to send double[] instead of
ChannelBuffer? The easiest way is to use ObjectEncoder and
ObjectDecoder (in org.jboss.netty.handler.codec.serialization).
If you want the most performant option, then you should write your own
encoder and decoder - see the user guide's POJO section.
HTH,
Trustin
On Tue, Dec 09, 2008 at 02:28:06PM +0900, manish_iitg wrote:
>
> Hello,
>
> I myself am new to netty. But i think, this is only way to send a data to
> server. I think the bottleneck for you speed would be you internet
> connection rather than netty.
>
>
> nixter wrote:
>>
>> Hello,
>>
>> First thanks for this great framework.
>>
>> I have a question, What's the fatest way to send a table of double?
>>
>> For example :
>> [code]
>> double[] tab=new double[10];
>>
>> channel.write(tab);
>>
>> [/code]
>>
>> Thank you.
>>
>
--
Trustin Lee, Principal Software Engineer, JBoss, a division of Red Hat
--
what we call human nature in actuality is human habit
--
http://gleamynode.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20081209/d7341879/attachment.bin
More information about the netty-users
mailing list