Click here to Skip to main content
15,911,890 members
Home / Discussions / C#
   

C#

 
AnswerRe: Japaneses fonts !!! Pin
albCode19-Dec-05 4:40
albCode19-Dec-05 4:40 
GeneralRe: Japaneses fonts !!! Pin
AB777119-Dec-05 17:02
AB777119-Dec-05 17:02 
QuestionHow to reference a string from another class? Pin
ckruger18-Dec-05 22:20
ckruger18-Dec-05 22:20 
AnswerRe: How to reference a string from another class? Pin
Vikram A Punathambekar18-Dec-05 22:25
Vikram A Punathambekar18-Dec-05 22:25 
AnswerRe: How to reference a string from another class? Pin
Colin Angus Mackay18-Dec-05 22:35
Colin Angus Mackay18-Dec-05 22:35 
QuestionWhat protocol i have to adopt for reliable transmission? Pin
Rashid.Mahmood18-Dec-05 21:40
Rashid.Mahmood18-Dec-05 21:40 
AnswerRe: What protocol i have to adopt for reliable transmission? Pin
c#guy381119-Dec-05 7:31
c#guy381119-Dec-05 7:31 
AnswerRe: What protocol i have to adopt for reliable transmission? Pin
mcljava22-Dec-05 8:14
mcljava22-Dec-05 8:14 
A couple things, since your monitor application is busy screen scraping choosing a protocol that is reliable is probably the best choice. In other words, TCP over UDP. The reason is with UDP, datagrams can be dropped, duplicated, or sent out of sequence. The latter does not bode well for a monitor client. Sure you could build in a retry and sequence mechanism but why? TCP will do that for you.

So now you have to further decide to proceed with managing the I/O. For one, having a real-time expectation may be a tad unrealistic. You will probably have to back off your update interval to a few seconds. At the minimum make it a tunable paremeter so that you can see performance on the fly.

The other huge consideration is what is your I/O model? If you app is already multi-threaded then you will probably want to use one new thread to scrape and enqueue or scrape and send. If you choose to buffer between the screen scrape and the actual send, make sure you use a AutoResetEvent or Mutex to signal the Send Thread it is time to send (i.e. updates are in queue).

If you architecture is asynchronous then you absolutley need to make sure your TCP I/O is also asynchronous. In other words use a non-blocking socket and use Begin/End for connect/accept, send/recv operations.

Mike Luster
QuestionC# app hosted in browser ? Pin
Christian Graus18-Dec-05 20:24
protectorChristian Graus18-Dec-05 20:24 
AnswerRe: C# app hosted in browser ? Pin
tarasn19-Dec-05 23:02
tarasn19-Dec-05 23:02 
QuestionTypecconverter for DataGrid and ListBox Pin
microsoc18-Dec-05 20:11
microsoc18-Dec-05 20:11 
Questionre-arrange items in a listbox or list view Pin
Agyeman18-Dec-05 19:47
Agyeman18-Dec-05 19:47 
Questioncommunication between c# and c++ through windows messaging Pin
Roy K18-Dec-05 19:39
Roy K18-Dec-05 19:39 
Questionbooks or websites for C# Pin
kal13na1318-Dec-05 18:55
kal13na1318-Dec-05 18:55 
AnswerRe: books or websites for C# Pin
enjoycrack18-Dec-05 18:58
enjoycrack18-Dec-05 18:58 
AnswerRe: books or websites for C# Pin
Drew McGhie19-Dec-05 7:48
Drew McGhie19-Dec-05 7:48 
QuestionXML--Reading Nodes.... Pin
Mahi.Ragava18-Dec-05 18:51
Mahi.Ragava18-Dec-05 18:51 
AnswerRe: XML--Reading Nodes.... Pin
Vikram A Punathambekar18-Dec-05 22:31
Vikram A Punathambekar18-Dec-05 22:31 
GeneralRe: XML--Reading Nodes.... Pin
Mahi.Ragava18-Dec-05 23:18
Mahi.Ragava18-Dec-05 23:18 
GeneralRe: XML--Reading Nodes.... Pin
S. Senthil Kumar19-Dec-05 0:04
S. Senthil Kumar19-Dec-05 0:04 
QuestionMDI parent and panels Pin
madhusri18-Dec-05 18:38
madhusri18-Dec-05 18:38 
AnswerRe: MDI parent and panels Pin
AETaylor18-Dec-05 19:28
AETaylor18-Dec-05 19:28 
GeneralRe: MDI parent and panels Pin
madhusri18-Dec-05 19:39
madhusri18-Dec-05 19:39 
GeneralRe: MDI parent and panels Pin
AETaylor18-Dec-05 19:45
AETaylor18-Dec-05 19:45 
GeneralRe: MDI parent and panels Pin
madhusri18-Dec-05 21:33
madhusri18-Dec-05 21:33 

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.