Page 1 of 1

Async sockets? Before I purchase...

Posted: Thu Nov 04, 2010 11:14 pm
by mberticus
Can somebody tell me if the underlying socket methods used are the async methods like ReceiveAsync, AcceptAsync, SendAsync that use the SocketAsyncEventArgs class?

My application needs to scale to large number of requests. I want to be sure that the code doesn't using blocking calls or has thread overhead.

Thanks,
M

Posted: Fri Nov 05, 2010 11:00 am
by alt
Library uses methods NetworkStream.BeginWrite and NetworkStream.BeginRead

Posted: Fri Nov 05, 2010 11:09 pm
by mberticus
Thanks. That should work for us. The async methods that use the SocketAsyncEventArgs have the added advantage of generating less garbage because the callback context can be reused. Not a huge issue though.