Click here to Skip to main content
15,888,816 members
Home / Discussions / C#
   

C#

 
AnswerRe: ini file Pin
N a v a n e e t h8-Sep-09 17:43
N a v a n e e t h8-Sep-09 17:43 
GeneralRe: ini file Pin
faheemnadeem8-Sep-09 18:38
faheemnadeem8-Sep-09 18:38 
GeneralRe: ini file Pin
Member 5903108-Sep-09 18:41
Member 5903108-Sep-09 18:41 
QuestionControlling Wireless and GPRS programmatically Pin
arimao8-Sep-09 15:16
arimao8-Sep-09 15:16 
AnswerRe: Controlling Wireless and GPRS programmatically Pin
arimao9-Sep-09 1:49
arimao9-Sep-09 1:49 
AnswerRe: Controlling Wireless and GPRS programmatically Pin
rodrigo_melo10-Apr-10 7:27
rodrigo_melo10-Apr-10 7:27 
QuestionMultithreaded UDP listener in c# Pin
Christian_V_V8-Sep-09 14:39
Christian_V_V8-Sep-09 14:39 
AnswerRe: Multithreaded UDP listener in c# Pin
N a v a n e e t h8-Sep-09 16:55
N a v a n e e t h8-Sep-09 16:55 
Welcome to CP!

Christian_V_V wrote:
The source code is in this link:

http://www.mediafire.com/file/kze3zztjzve/httprequest.rar[^]


This is not how CP works. People hardly download code. You can post the relevant code here and ask about doubts.

Christian_V_V wrote:
There will be hundreds of entries per minute


There are many things to consider when implementing a highly scalable server application. Few of them are,

  1. How much users will be connected simultaneously? If this is more than 50, you are better off with asynchronous methods. It allows to create highly scalable applications. If you have less number of users, asynchronous methods will add unnecessary complexity to your program.
  2. Are you starting new thread for each client? If yes you will run into problems. You need to use a ThreadPool. I have once written a highly scalable server with a custom thread pool taken from Smart Thread Pool[^].
  3. From my experience, I found it is best to work directly with Socket class rather than the wrapper class like UdpClient.
  4. If you need to keep reference to the clients that are connected, you should consider using a data structure that will allow faster searches. In .NET, Dictionary class is good and it allows searching in O(1).
You will find this[^] MSDN article helpful.
Christian_V_V wrote:
Also, if i need multithread in the database part.


Databases are already multi-threaded. What do you meant by that?

Smile | :)


QuestionGenerics [modified] Pin
Daniel.J.A8-Sep-09 13:52
Daniel.J.A8-Sep-09 13:52 
AnswerRe: Generics Pin
Christian Graus8-Sep-09 13:59
protectorChristian Graus8-Sep-09 13:59 
AnswerRe: Generics Pin
Luc Pattyn8-Sep-09 14:04
sitebuilderLuc Pattyn8-Sep-09 14:04 
AnswerRe: Generics Pin
N a v a n e e t h8-Sep-09 16:36
N a v a n e e t h8-Sep-09 16:36 
AnswerRe: Generics Pin
Daniel.J.A28-Sep-09 12:16
Daniel.J.A28-Sep-09 12:16 
Questionhow to create a tool item dropdown menu with C#? Pin
iozk8-Sep-09 12:20
iozk8-Sep-09 12:20 
AnswerRe: how to create a tool item dropdown menu with C#? Pin
Christian Graus8-Sep-09 12:31
protectorChristian Graus8-Sep-09 12:31 
QuestionOdd Visual Studio 2005 behaviour when adding Object Data Source [modified] Pin
Martijn Boeker8-Sep-09 12:10
Martijn Boeker8-Sep-09 12:10 
QuestionSubreports Pin
mbangh8-Sep-09 12:05
mbangh8-Sep-09 12:05 
AnswerRe: Subreports Pin
Mycroft Holmes8-Sep-09 15:59
professionalMycroft Holmes8-Sep-09 15:59 
QuestionNetworking problems. Pin
CRAZYCRICKET2258-Sep-09 9:19
CRAZYCRICKET2258-Sep-09 9:19 
GeneralRe: Networking problems. Pin
harold aptroot8-Sep-09 10:40
harold aptroot8-Sep-09 10:40 
AnswerRe: Networking problems. Pin
Luc Pattyn8-Sep-09 14:08
sitebuilderLuc Pattyn8-Sep-09 14:08 
GeneralRe: Networking problems. Pin
CRAZYCRICKET2258-Sep-09 21:36
CRAZYCRICKET2258-Sep-09 21:36 
GeneralRe: Networking problems. Pin
CRAZYCRICKET2259-Sep-09 0:26
CRAZYCRICKET2259-Sep-09 0:26 
GeneralRe: Networking problems. Pin
Luc Pattyn9-Sep-09 12:29
sitebuilderLuc Pattyn9-Sep-09 12:29 
QuestionC# Pin
aayshasid8-Sep-09 9:18
aayshasid8-Sep-09 9:18 

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.