Async sockets? Before I purchase...

.NET library for SMPP protocol
Locked
mberticus
Posts: 2
Joined: Thu Nov 04, 2010 11:02 pm

Async sockets? Before I purchase...

Post 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
alt
Site Admin
Posts: 992
Joined: Tue Apr 25, 2006 9:45 am

Post by alt »

Library uses methods NetworkStream.BeginWrite and NetworkStream.BeginRead
mberticus
Posts: 2
Joined: Thu Nov 04, 2010 11:02 pm

Post 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.
Locked