Re: Transmitting strings via tcp from a windows c++ client to a Java server
- From: "qqq111" <GiladHa@xxxxxxxxx>
- Date: 23 Feb 2006 11:16:16 -0800
Hi,
Chris Uppal wrote:
Normally I just ignore people who don't follow "The Rules"
Thanks for not ignoring me ;-)
That algorithm will not give you the size in bytes of a UTF-8 encoded string
You're right, of course.
[easiest way to calc utf-8 buffer len ] is just to let the platform
do the encoding and then transmit the length of the resulting byte array
That is what we'll probably do, in the end.
make very sure [doc] is /very/ clear about the meaning of the size field
Agree - very important to clearly state 'type of length' .
As a side note: you've mentioned zlib in a prior post. We do plan to
compress parts to the network-transferred data. We plan, however on
using
an open source lib called LZMA ( http://www.7-zip.org),
which achieves impressive compression ratios at a reasonable CPU cost
(see: http://tukaani.org/lzma/ ).
Do you feel we've missed any important considerations here?
Thanks again,
Gilad
.
- Follow-Ups:
- References:
- Transmitting strings via tcp from a windows c++ client to a Java server
- From: qqq111
- Re: Transmitting strings via tcp from a windows c++ client to a Java server
- From: Chris Uppal
- Re: Transmitting strings via tcp from a windows c++ client to a Java server
- From: qqq111
- Re: Transmitting strings via tcp from a windows c++ client to a Java server
- From: Chris Uppal
- Transmitting strings via tcp from a windows c++ client to a Java server
- Prev by Date: Re: Declaring local variables inside loop
- Next by Date: Re: Creating And Plotting Graphs
- Previous by thread: Re: Transmitting strings via tcp from a windows c++ client to a Java server
- Next by thread: Re: Transmitting strings via tcp from a windows c++ client to a Java server
- Index(es):
Relevant Pages
|