Thread: Formatting/interpreting large amounts of data

  1. #1
    Registered User
    Join Date
    Jan 2009

    Formatting/interpreting large amounts of data

    First off, I wanna say thanks for the help I've already gotten from you guys.

    With my client/server setup, every 5 milliseconds my client program takes three different double values and sends them to the server program running on another computer. It seems I've managed to jump all the hurdles in terms of connecting and sending data, and now I'm working on having the data sent in a fashion that allows the server computer to know which value sent is which.

    I've done some reading, and I've seen stuff about prepending each message with a header which would allow the receiving program to be able to tell which message is which and how many bytes each message is, but I haven't seen any example code for it. I've also read a little bit about using serialization to pack data together before sending then unpacking it on the other end, but again, I haven't seen much in the way of examples.

    Does anyone have any links I can be pointed to that have examples on these or other similar methods?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    HTTP is an example of a header + body protocol.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Large Data management in using File
    By mohsan1987 in forum C Programming
    Replies: 6
    Last Post: 09-14-2006, 06:41 AM
  2. question about a working linked list
    By cold_dog in forum C++ Programming
    Replies: 23
    Last Post: 09-13-2006, 01:00 AM
  3. Large exe files for small amounts of code problem
    By rainmanddw in forum C++ Programming
    Replies: 4
    Last Post: 11-03-2003, 05:52 PM
  4. gcc problem
    By bjdea1 in forum Linux Programming
    Replies: 13
    Last Post: 04-29-2002, 06:51 PM
  5. accepting large amounts of data
    By Sekti in forum C++ Programming
    Replies: 1
    Last Post: 04-05-2002, 05:45 PM