Interpolate byte array from 64 bit linux app

Discussion in 'C++' started by tradevol@yahoo.com, Aug 12, 2008.

  1. Guest

    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
    , Aug 12, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alex
    Replies:
    2
    Views:
    469
  2. Samuel Williams
    Replies:
    3
    Views:
    100
    Brian Candler
    Feb 9, 2011
  3. Mr P
    Replies:
    21
    Views:
    194
    Brian McCauley
    Dec 28, 2005
  4. N.Asenjo

    interpolate system() or exec()

    N.Asenjo, Feb 10, 2006, in forum: Perl Misc
    Replies:
    4
    Views:
    121
    A. Sinan Unur
    Feb 10, 2006
  5. Chris M.

    Can't Interpolate variable into a string

    Chris M., Dec 17, 2008, in forum: Javascript
    Replies:
    6
    Views:
    86
    Thomas 'PointedEars' Lahn
    Dec 19, 2008
Loading...

Share This Page