.NET library for SMPP protocol
-
mberticus
- Posts: 2
- Joined: Thu Nov 04, 2010 11:02 pm
Post
by mberticus » Thu Nov 04, 2010 11:14 pm
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: 988
- Joined: Tue Apr 25, 2006 9:45 am
Post
by alt » Fri Nov 05, 2010 11:00 am
Library uses methods NetworkStream.BeginWrite and NetworkStream.BeginRead
-
mberticus
- Posts: 2
- Joined: Thu Nov 04, 2010 11:02 pm
Post
by mberticus » Fri Nov 05, 2010 11:09 pm
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.