Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Interpolate byte array from 64 bit linux app

Reply
Thread Tools

Interpolate byte array from 64 bit linux app

 
 
tradevol@yahoo.com
Guest
Posts: n/a
 
      08-12-2008
Hi,

I have a client app which directly read the byte stream from the
socket, which is sent from linux 64 bit server app.
One problem I have is that I realize that it seems like the minimum
size for the data sent from linux is 4 bytes. even though the server
only sent one char. Any short type data is 8 bytes also (instead of 2
bytes as expected in 32bit system).

One of the reason to use binary array is to reduce the message
traffic. However, it seems unachievable from a 64 bit system.

I sent a lot of data and hope to reduce the size as much as possible,
but still using the 64 bit server. Any suggestions?

Thanks

Chris
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Proposal: String#interpolate for safe templating Samuel Williams Ruby 3 02-09-2011 07:26 PM
How can I interpolate the RHS of a regex? Mr P Perl Misc 21 12-28-2005 04:37 PM
interpolate cox news Digital Photography 1 11-11-2005 07:35 AM
array type casting problem in scipy.interpolate Alex Python 2 04-30-2005 10:29 PM
Converting a Primative byte array to a Byte array object Kirby Java 3 10-08-2004 03:01 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57