C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 02-27-2009, 11:42 AM   #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?
robot-ic is offline   Reply With Quote
Old 02-27-2009, 12:26 PM   #2
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,699
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.

Salem is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 03:24 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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