SocketAsyncEventArgs buffer is full of zeroes
问题 I'm writing a message layer for my distributed system. I'm using IOCP, ie the Socket.XXXAsync methods. Here's something pretty close to what I'm doing (in fact, my receive function is based on his): http://vadmyst.blogspot.com/2008/05/sample-code-for-tcp-server-using.html What I've found now is that at the start of the program (two test servers talking to each other) I each time get a number of SAEA objects where the .Buffer is entirely filled with zeroes, yet the .BytesTransferred is the