Click here to Skip to main content
15,909,530 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# and local SQL server connection Pin
Ravi Sant22-Mar-11 0:52
Ravi Sant22-Mar-11 0:52 
Questiondatagridview problems! Pin
King Boy21-Mar-11 19:54
King Boy21-Mar-11 19:54 
Questioncalling a web service at runtime Pin
Marcus Spitzmiller21-Mar-11 13:45
Marcus Spitzmiller21-Mar-11 13:45 
AnswerRe: calling a web service at runtime Pin
Pete O'Hanlon21-Mar-11 22:57
mvePete O'Hanlon21-Mar-11 22:57 
Questionproblem to connect to Oracle from my C# WinForm program Pin
Gali197821-Mar-11 10:12
Gali197821-Mar-11 10:12 
AnswerRe: problem to connect to Oracle from my C# WinForm program Pin
Wendelius21-Mar-11 10:26
mentorWendelius21-Mar-11 10:26 
AnswerRe: problem to connect to Oracle from my C# WinForm program Pin
Ian Shlasko21-Mar-11 10:30
Ian Shlasko21-Mar-11 10:30 
QuestionWindows service stable APPCRASH in clr.dll after 3.5 to 4.0 .NET platform change Pin
Chesnokov Yuriy21-Mar-11 1:26
professionalChesnokov Yuriy21-Mar-11 1:26 
AnswerRe: Windows service stable APPCRASH in clr.dll after 3.5 to 4.0 .NET platform change Pin
Pete O'Hanlon21-Mar-11 3:10
mvePete O'Hanlon21-Mar-11 3:10 
QuestionRe: Windows service stable APPCRASH in clr.dll after 3.5 to 4.0 .NET platform change Pin
Chesnokov Yuriy21-Mar-11 7:18
professionalChesnokov Yuriy21-Mar-11 7:18 
AnswerRe: Windows service stable APPCRASH in clr.dll after 3.5 to 4.0 .NET platform change Pin
Pete O'Hanlon21-Mar-11 8:23
mvePete O'Hanlon21-Mar-11 8:23 
QuestionRe: Windows service stable APPCRASH in clr.dll after 3.5 to 4.0 .NET platform change Pin
Chesnokov Yuriy21-Mar-11 10:06
professionalChesnokov Yuriy21-Mar-11 10:06 
AnswerRe: Windows service stable APPCRASH in clr.dll after 3.5 to 4.0 .NET platform change Pin
Pete O'Hanlon21-Mar-11 10:42
mvePete O'Hanlon21-Mar-11 10:42 
AnswerRe: Windows service stable APPCRASH in clr.dll after 3.5 to 4.0 .NET platform change Pin
Chesnokov Yuriy22-Mar-11 0:36
professionalChesnokov Yuriy22-Mar-11 0:36 
GeneralRe: Windows service stable APPCRASH in clr.dll after 3.5 to 4.0 .NET platform change Pin
Pete O'Hanlon22-Mar-11 0:38
mvePete O'Hanlon22-Mar-11 0:38 
GeneralRe: Windows service stable APPCRASH in clr.dll after 3.5 to 4.0 .NET platform change Pin
Chesnokov Yuriy22-Mar-11 21:52
professionalChesnokov Yuriy22-Mar-11 21:52 
QuestionTotal Dynamic Report. Pin
Dot Net Jantu20-Mar-11 20:26
Dot Net Jantu20-Mar-11 20:26 
AnswerRe: Total Dynamic Report. [modified] Pin
SungBae.Han20-Mar-11 22:43
SungBae.Han20-Mar-11 22:43 
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 
Hey there! Been a while… took a little break from bugging you all with questions Wink | ;-) .

Anyways I was working on a server/client project so I could just become familiar with socket programming before I took a little "programming" break. Now that I'm going to continue it I had a few questions about trying what I'm attempting to do.

What I want is to create a Agent-Based monitoring application. So the idea would be to have the server sitting out on the WAN listening for connections from the agents. The agents will upload data and will perform more actions in the future.

So what is the best way to handle multiple connections? The connections could range anywhere from 1 to 750 agents that checkin every 30 seconds. Some products that come in mind is Labtech, Kaseya, and Zenith. I was using async sockets and see tons of people out there just creating new threads on a new connection, but surely this will kill the server when you get many connections.

Should I be using a thread pool (haven't dove into how to do this yet), creating new threads, async sockets, or what?

Thanks!
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 

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.