Click here to Skip to main content
15,917,608 members
Home / Discussions / C#
   

C#

 
Questionembed .net component to program Pin
saeed70078-Dec-08 11:11
saeed70078-Dec-08 11:11 
AnswerRe: embed .net component to program Pin
EliottA8-Dec-08 11:28
EliottA8-Dec-08 11:28 
AnswerRe: embed .net component to program Pin
Giorgi Dalakishvili8-Dec-08 19:26
mentorGiorgi Dalakishvili8-Dec-08 19:26 
AnswerRe: embed .net component to program Pin
Lev Danielyan8-Dec-08 19:55
Lev Danielyan8-Dec-08 19:55 
QuestionHow to update my datagrid using text boxes? Pin
Vloops8-Dec-08 11:11
Vloops8-Dec-08 11:11 
AnswerRe: How to update my datagrid using text boxes? Pin
Alireza Loghmani8-Dec-08 22:40
Alireza Loghmani8-Dec-08 22:40 
QuestionThrottling Socket.Send Pin
davidhart8-Dec-08 10:13
davidhart8-Dec-08 10:13 
AnswerRe: Throttling Socket.Send Pin
Jimmanuel8-Dec-08 11:19
Jimmanuel8-Dec-08 11:19 
One possible solution:

take your buffer and partition it into pieces. wrap each piece with some info so that the receiver can reassemble them into the correct order; minimally you'll need a Sequence ID, message number and stop flag. Then instead of sending all of your data in bulk at once send each packet at whatever rate you want so the receiver will receive them at your desired frequency.

The packet sequence should look something like this:

SEQ ID: 1
NUM: 1
COMPLETE: FALSE
BODY: < small part of the message >

SEQ ID: 1
NUM: 2
COMPLETE: FALSE
BODY: < another small part of the message >

...

SEQ ID: 1
NUM: n
COMPLETE: TRUE
BODY: < the last small part of the message >


the sender is responsible for making sure Seq IDs are unique, the data is partitioned/packaged properly and all packets are sent.

it's the job of the receiver to buffer the individual packets for each Sequence ID, wait until it receives the last packet number in the sequence and then reassemble the entire message. It should be able to handle cases like dropping packets (receiving packets 1 and 3 of a message but not 2) and receiving message packets out of order, but the specifics of what to do in those cases depend on your application.

For the next bulk send you want to perform increment the Sequence ID and repeat.



QuestionDrawing a window overlay Pin
xxxsamixxx8-Dec-08 10:08
xxxsamixxx8-Dec-08 10:08 
QuestionMeasuring reaction time of the user. Pin
Jakob Olsen8-Dec-08 9:49
Jakob Olsen8-Dec-08 9:49 
AnswerRe: Measuring reaction time of the user. Pin
User 66588-Dec-08 9:57
User 66588-Dec-08 9:57 
GeneralRe: Measuring reaction time of the user. Pin
Jakob Olsen8-Dec-08 10:20
Jakob Olsen8-Dec-08 10:20 
QuestionAdd image to spreadsheetml document Pin
GibbleCH8-Dec-08 9:48
GibbleCH8-Dec-08 9:48 
QuestionAcquiring a thread. Pin
Member 23244838-Dec-08 9:22
Member 23244838-Dec-08 9:22 
AnswerRe: Acquiring a thread. Pin
Christian Graus8-Dec-08 9:45
protectorChristian Graus8-Dec-08 9:45 
GeneralRe: Acquiring a thread. Pin
Member 23244838-Dec-08 10:20
Member 23244838-Dec-08 10:20 
GeneralRe: Acquiring a thread. Pin
N a v a n e e t h8-Dec-08 16:33
N a v a n e e t h8-Dec-08 16:33 
QuestionComunication between form an appl. and a service. Pin
daavena8-Dec-08 9:07
daavena8-Dec-08 9:07 
AnswerRe: Comunication between form an appl. and a service. Pin
Giorgi Dalakishvili8-Dec-08 9:16
mentorGiorgi Dalakishvili8-Dec-08 9:16 
GeneralRe: Comunication between form an appl. and a service. Pin
daavena8-Dec-08 9:28
daavena8-Dec-08 9:28 
GeneralRe: Comunication between form an appl. and a service. Pin
Giorgi Dalakishvili8-Dec-08 19:19
mentorGiorgi Dalakishvili8-Dec-08 19:19 
AnswerRe: Comunication between form an appl. and a service. Pin
PIEBALDconsult8-Dec-08 12:45
mvePIEBALDconsult8-Dec-08 12:45 
QuestionEmbedding Excel in Windows Forms Pin
San248-Dec-08 8:11
San248-Dec-08 8:11 
AnswerRe: Embedding Excel in Windows Forms Pin
Giorgi Dalakishvili8-Dec-08 8:27
mentorGiorgi Dalakishvili8-Dec-08 8:27 
GeneralRe: Embedding Excel in Windows Forms Pin
San248-Dec-08 9:10
San248-Dec-08 9:10 

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.