C# – SocketAsyncEventArgs and ReadAsync


When using 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? I'm a bit confused.

Best Solution

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).