[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

SRMP sender

Posted on 2006-06-08
1
Medium Priority
?
342 Views
Last Modified: 2010-04-15
Hi Experts,

I am writing SRMP sender program, and I dont know how to send SRMP_DATA, because I should send a packet , and then check if I receive ack for that packet, if not I will send the next packet, But I should keep track of each packet time_out, if for example,
I send packet1
t1=I get the current time
I check if I receive any thing
t2=I check the time
if (t2-t1)<2 seconds
I send packet2
and I should check again for timeout
I dont know exactly in which matter I should keep track of each packet and the timeout for each packet

this are some links of some websites how have done this before:

http://poetry.tetto.org/define/19681/

http://www.cse.ucsd.edu/classes/wi05/cse123a/Project2

http://www.cs.bu.edu/~snyder/cs455/project/pa1.html

http://www.ugrad.cs.ubc.ca/~cs317/X/Assignments/a3/a3.html


0
Comment
Question by:zahmadian
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 24

Accepted Solution

by:
fridom earned 1500 total points
ID: 16867768
sorry, that makes no sense to me. You wrote:
"because I should send a packet , and then check if I receive ack for that packet, if not I will send the next packet"

If you do not have received the ack then this package is lost and you are going to send the next package? I would expect you retransmit that "lost" package.

Now as I understand is that you like to have a "reliable" protocol upon UDP. So the task you have to carry out are for me.
- keeping book about the send package, there transmittion time and there status
- dependen on the status you either "resend" packages or send the next package
- if you get an request that one package is missing you retransmit it.  


on the other side the following happens. The packages come in in an arbitrary order for that you keep a counter for the number of the package. You cashe the received packages till you get them all then you put them back into the right order.

If you see that package is missing after a certain time, you ask the sender to retransmit the package.

So you task is as I understand implementing this book-keeping. So go for it....

Regards
Friedrich
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

650 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