(E-Mail Removed) wrote in message
> I'm writing a server application connection to multiple clients using
> sockets.
Alright. This sounds pretty common.
> I want one socket for each client, and the comunication needs
> to be async. I could use the async sockets methods (beginsend,
> beginrecv...) or I could start a new thread for each client and run the
> comunication using the sync mehtods (send,recv). What is the best
> aproach?
>
How many sockets do you think will be connected at any given time? If the
answer if "a few" then go with whatever programming mechanism you understand
the best and can debug the easiest.
If the answer is "I'm Not Sure" or "Alot" then you need to use Async Socket.
> This is a performance critical application.
On any modern machine, as long as you follow the rule above, you'll have no
issue with socket performance unless you have some very unusual performance
requirements.
What are your performance requirements, and how do you plan to know if
you've met them?
--
Chris Mullins, MCSD.NET, MCPD:Enterprise
http://www.coversant.net/blogs/cmullins