Has any one worked with the "SocketAsyncEventArgs" class and ReadAsync? where do i put the read buffer and where do i put the send buffer? or can i only read or send at one time not both? im a bit confused can some help me just write some code to send a byte array?
+3
A:
I think you're looking for the Buffer
property of SocketAsyncEventArgs
. This tutorial explains how to use the SocketAsyncEventArgs
class properly.
The MSDN article for the class contains some useful remarks and provides example code too (they're almost always a good start).
andyp
2009-03-08 15:43:58
+1
A:
This is also quite a nice starting point for the new socket functionality and changes in .NET 3.5.