Click here to Skip to main content
15,902,112 members
Home / Discussions / C#
   

C#

 
AnswerRe: Calling unmanaged function from C# with the paramater of type BSTR* (pointer to BSTR) Pin
_Erik_27-Dec-10 15:09
_Erik_27-Dec-10 15:09 
QuestionUDP Send Interval Pin
softwarejaeger27-Dec-10 3:09
softwarejaeger27-Dec-10 3:09 
AnswerRe: UDP Send Interval Pin
Richard MacCutchan27-Dec-10 3:39
mveRichard MacCutchan27-Dec-10 3:39 
GeneralRe: UDP Send Interval Pin
softwarejaeger27-Dec-10 3:47
softwarejaeger27-Dec-10 3:47 
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 
Errrrr, you don't want to use TCP, so you want to implement a network protocol which works just like TCP does... Well, I don't get the point. I don't know if you understand the difference between UDP and TCP, so let me give you some advices:

1. UDP does not provide any control over the order in which the datagrams will arrive to their destination. You should check for this in an upper level.
2. UDP does not provide any control if a datagram is duplicated. You should check for this in an upper level.
3. UDP does not provide any control if a datagram is missing. You should check for this in an upper level.
4. UDP does not provide any control if a datagram is corrupted. You should check for this in an upper level.

If you want to use UDP for a transmission that should work as if you were using TCP, chances are:

a) Use TCP (sorry, I know you don't want, but this is just what I would do)
b) Implement a new protocol which allow yo to:

1. Have control over the order in which the datagrams will arrive to their destination.
2. Know if a datagram is duplicated.
3. Know if a datagram is missing.
4. Know if a datagram is corrupted.

In other words, implement a variation of TCP protocol...

As I have seen in your post, it seems that you have only thought about the order of the datagrams and the missing datagrams, so you've got half of the job so far: you still have to check for duplicate and corrupted datagrams.

Edit: Sorry, I did not see the previous answer before writing this "Bible". Can we know why do you have to use UDP and cannot use any other protocol?
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 
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 

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.