![]() |
| | #1 |
| Registered User Join Date: Jan 2009
Posts: 12
| Formatting/interpreting large amounts of data 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 | |
| | #2 |
| and the hat of Jobseeking Join Date: Aug 2001 Location: The edge of the known universe
Posts: 21,699
| HTTP is an example of a header + body protocol. |
| Salem is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
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 |