Solved

tcp receive and de-packaging

Posted on 2013-06-14
1
372 Views
Last Modified: 2013-06-22
Need to receive a tcp stream about 25Mbyte/s, then assemble into individual package by protocol definition.

The first thing is how should I read the tcp socket, how long time interval should be each read. Now I set as 1ms.

There are different tcp reading mode, which mode is better, I set as immediate reading as timeout.

Also, normally how to assemble these packages, and for one of the protocol definition, the package length 41256.

Any suggestion, thanks.
0
Comment
Question by:turbot_yu
1 Comment
 
LVL 15

Accepted Solution

by:
Minh Võ Công earned 500 total points
ID: 39253413
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This is about my first experience with programming Arduino.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now