Results 1 to 2 of 2
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
04-29-2013 #1
- Join Date
- May 2012
- Posts
- 98
minimum time intervals between sent packets
Code:for(i=0;i<5;i++){ send(sockfd, data, data_len); }
Code:for i in `seq 1 20000`;do ./udp_sender sleep interval done
so there are 100 packets per second
and the number of bytes is around 7KB/sec
it is not a bit value
but the receiver can only receive a small part of the packets
why?
thanksLast edited by atreyu; 04-30-2013 at 06:06 AM. Reason: added CODE tags
-
04-30-2013 #2
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
- Posts
- 14,038
This is UDP? UDP has no guarantees of delivery or sequence of packets sent vs. packets received. TCP takes care of that for you, but UDP does not. You have to code the protocols to deal with out-of-order or missing packets yourself.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!