Rework SocketAsyncEventArgs internals
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Sat, 25 Sep 2010 01:26:14 +0000 (21:26 -0400)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Sat, 25 Sep 2010 16:37:27 +0000 (12:37 -0400)
commit61d0f84376c8839a495f08b168d47c13e14271cf
tree09a1d0bf4532df4cd25801e34bbb70ad92a746bd
parent820c91d665bfe00bbc0d97854c6b31ca9dfa0e55
Rework SocketAsyncEventArgs internals

-Removed #if NET_2_0
-All the *Async() calls but ConnectAsync() are routed through the
asynch IO threadpool instead of creating a new short-lived thread for
every operation.
-When reusing a SocketAsyncEventArgs only 1 new object, a delegate, is
created.
mcs/class/System/System.Net.Sockets/Socket.cs
mcs/class/System/System.Net.Sockets/SocketAsyncEventArgs.cs
mcs/class/System/System.Net.Sockets/Socket_2_1.cs