Click here to Skip to main content
15,924,482 members
Home / Discussions / C#
   

C#

 
GeneralRe: Total Dynamic Report. Pin
Richard MacCutchan20-Mar-11 23:23
mveRichard MacCutchan20-Mar-11 23:23 
GeneralI'm sorry :) Pin
SungBae.Han21-Mar-11 13:02
SungBae.Han21-Mar-11 13:02 
GeneralRe: I'm sorry :) Pin
Richard MacCutchan21-Mar-11 23:40
mveRichard MacCutchan21-Mar-11 23:40 
QuestionHandling multiple clients via Sockets Pin
Jacob D Dixon20-Mar-11 9:45
Jacob D Dixon20-Mar-11 9:45 
AnswerRe: Handling multiple clients via Sockets Pin
SungBae.Han20-Mar-11 22:47
SungBae.Han20-Mar-11 22:47 
AnswerRe: Handling multiple clients via Sockets Pin
David198720-Mar-11 23:11
David198720-Mar-11 23:11 
GeneralRe: Handling multiple clients via Sockets Pin
Jacob D Dixon21-Mar-11 16:32
Jacob D Dixon21-Mar-11 16:32 
AnswerRe: Handling multiple clients via Sockets Pin
BobJanova21-Mar-11 23:59
BobJanova21-Mar-11 23:59 
For a checkin every 30 seconds you might want to consider UDP or reconnecting each time.

The recommended way to do TCP is using the asynchronous methods; as you correctly guess creating lots of threads can cause problems. A lot of people (including myself!) start out that way because it's easy, it's how you did it in Java and the documentation for the asynchronous sockets is not that great.

What's likely to be the biggest problem in this design is that you will be using up to 750 sockets. That will be a bigger hit than the use of .Net objects with such a low load.

A quick search turned up this excellent article on high performance use of the asynchronous socket methods.
GeneralRe: Handling multiple clients via Sockets Pin
Jacob D Dixon27-Mar-11 5:43
Jacob D Dixon27-Mar-11 5:43 
GeneralRe: Handling multiple clients via Sockets Pin
BobJanova28-Mar-11 11:54
BobJanova28-Mar-11 11:54 
AnswerRe: Handling multiple clients via Sockets Pin
Rob Philpott22-Mar-11 0:39
Rob Philpott22-Mar-11 0:39 
GeneralRe: Handling multiple clients via Sockets Pin
Jacob D Dixon27-Mar-11 5:44
Jacob D Dixon27-Mar-11 5:44 
QuestionEnding all processes including hidden ones Pin
teknolog12320-Mar-11 0:16
teknolog12320-Mar-11 0:16 
AnswerRe: Ending all processes including hidden ones Pin
Dave Kreskowiak20-Mar-11 4:28
mveDave Kreskowiak20-Mar-11 4:28 
AnswerRe: Ending all processes including hidden ones Pin
Eddy Vluggen20-Mar-11 4:38
professionalEddy Vluggen20-Mar-11 4:38 
AnswerRe: Ending all processes including hidden ones Pin
Luc Pattyn20-Mar-11 10:27
sitebuilderLuc Pattyn20-Mar-11 10:27 
Questionsomething very Strange in Webservice and windows-ce connection Pin
Gali197818-Mar-11 21:51
Gali197818-Mar-11 21:51 
AnswerRe: something very Strange in Webservice and windows-ce connection Pin
Henry Minute19-Mar-11 10:26
Henry Minute19-Mar-11 10:26 
Questionhow to force IIS_IUSER full control by making setup & deploy project ? Pin
Gali197818-Mar-11 9:38
Gali197818-Mar-11 9:38 
AnswerRe: how to force IIS_IUSER full control by making setup & deploy project ? Pin
Dave Kreskowiak18-Mar-11 10:35
mveDave Kreskowiak18-Mar-11 10:35 
AnswerRe: how to force IIS_IUSER full control by making setup & deploy project ? Pin
Keith Barrow19-Mar-11 9:32
professionalKeith Barrow19-Mar-11 9:32 
AnswerRe: how to force IIS_IUSER full control by making setup & deploy project ? Pin
Bernhard Hiller20-Mar-11 21:21
Bernhard Hiller20-Mar-11 21:21 
QuestionPayPal and Backup recovery Pin
mageba18-Mar-11 7:28
mageba18-Mar-11 7:28 
AnswerMy Vote of 1 Pin
Keith Barrow18-Mar-11 10:29
professionalKeith Barrow18-Mar-11 10:29 
AnswerRe: PayPal and Backup recovery Pin
Richard MacCutchan18-Mar-11 10:47
mveRichard MacCutchan18-Mar-11 10:47 

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.