Formatting/interpreting large amounts of data

This is a discussion on Formatting/interpreting large amounts of data within the Networking/Device Communication forums, part of the General Programming Boards category; First off, I wanna say thanks for the help I've already gotten from you guys. With my client/server setup, every ...

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    12

    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,333
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 04: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, 04:45 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21