Click here to Skip to main content
15,891,633 members
Home / Discussions / C#
   

C#

 
GeneralRe: UDP Send Interval Pin
Richard MacCutchan27-Dec-10 4:51
mveRichard MacCutchan27-Dec-10 4:51 
GeneralRe: UDP Send Interval Pin
jschell27-Dec-10 8:06
jschell27-Dec-10 8:06 
GeneralRe: UDP Send Interval Pin
Dave Kreskowiak27-Dec-10 8:36
mveDave Kreskowiak27-Dec-10 8:36 
AnswerRe: UDP Send Interval Pin
_Erik_27-Dec-10 3:59
_Erik_27-Dec-10 3:59 
GeneralRe: UDP Send Interval Pin
softwarejaeger27-Dec-10 4:13
softwarejaeger27-Dec-10 4:13 
GeneralRe: UDP Send Interval Pin
_Erik_27-Dec-10 4:53
_Erik_27-Dec-10 4:53 
GeneralRe: UDP Send Interval Pin
Dave Kreskowiak27-Dec-10 8:40
mveDave Kreskowiak27-Dec-10 8:40 
AnswerRe: UDP Send Interval Pin
carbon_golem27-Dec-10 9:58
carbon_golem27-Dec-10 9:58 
I've done things like this with much lower level protocols. Typically I do it with ACK messages, so you send one UDP frame, then wait for the receiver to ACK before you send the next. It works well if you don't have time sensitive stuff like sending video. If you have to optimize due to lag or timing constraints, you could frame your own message protocol inside the UDP frame that would include a sequence number. That method will allow the receiver to send NACK messages (Negative ACK if you didn't know) on messages that it didn't receive. I think you'll definitely have to ACK messages in some way weather it's on every message or missed ones.

Hope it helps.

EDIT:
After re-reading your original post, maybe your protocol includes ACK/NACK. One other thing you could do is try to optimize the size of the frame you're sending so that it fills as much of the frame as possible. Look up Minimum Transmission Units or something like that. You may also want to look at waiting for the order of arrival. Your sender just sends and sends, and the receiver can ask for specific frame numbers. You could eliminate any kind of artificial turnaround wait times. It would be up to the sender to buffer and sequence packets in some way that is saved or can be calculated for retries, and up to your receiver to be able to continue to receive in spite of out of order data.
"Simplicity carried to the extreme becomes elegance."
-Jon Franklin

GeneralRe: UDP Send Interval Pin
Richard MacCutchan27-Dec-10 22:27
mveRichard MacCutchan27-Dec-10 22:27 
GeneralRe: UDP Send Interval Pin
carbon_golem28-Dec-10 4:37
carbon_golem28-Dec-10 4:37 
GeneralRe: UDP Send Interval Pin
Richard MacCutchan28-Dec-10 5:34
mveRichard MacCutchan28-Dec-10 5:34 
GeneralRe: UDP Send Interval Pin
carbon_golem28-Dec-10 6:09
carbon_golem28-Dec-10 6:09 
QuestionHow to localize AssemblyInfo.cs? Pin
Chesnokov Yuriy27-Dec-10 2:46
professionalChesnokov Yuriy27-Dec-10 2:46 
AnswerRe: How to localize AssemblyInfo.cs? Pin
Tony Richards27-Dec-10 3:10
Tony Richards27-Dec-10 3:10 
AnswerRe: How to localize AssemblyInfo.cs? Pin
Michael Agroskin30-Dec-10 17:27
Michael Agroskin30-Dec-10 17:27 
QuestionAuto localizing with ResXResourceReader Pin
Chesnokov Yuriy27-Dec-10 2:45
professionalChesnokov Yuriy27-Dec-10 2:45 
QuestionIncrease the quota : XmlDictionaryReaderQuotas Pin
abbd26-Dec-10 21:22
abbd26-Dec-10 21:22 
AnswerRepost Pin
Pete O'Hanlon26-Dec-10 21:44
mvePete O'Hanlon26-Dec-10 21:44 
GeneralRe: Repost Pin
abbd26-Dec-10 21:53
abbd26-Dec-10 21:53 
GeneralRe: Repost Pin
Pete O'Hanlon26-Dec-10 22:05
mvePete O'Hanlon26-Dec-10 22:05 
QuestionRe: Repost Pin
abbd26-Dec-10 22:13
abbd26-Dec-10 22:13 
AnswerRe: Repost Pin
Keith Barrow26-Dec-10 23:13
professionalKeith Barrow26-Dec-10 23:13 
GeneralRe: Repost Pin
#realJSOP27-Dec-10 1:26
mve#realJSOP27-Dec-10 1:26 
GeneralRe: Repost Pin
_Erik_27-Dec-10 4:11
_Erik_27-Dec-10 4:11 
QuestionRe: Repost Pin
abbd26-Dec-10 22:35
abbd26-Dec-10 22:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.