What is the maximum number of bytes WSARecv can receive at one time?

The WSABUF struct that you pass to WSARecv() specifies a pointer to a buffer that WSARecv() reads the bytes into, and the maximum number of bytes that can be read into that buffer. When WSARecv() completes its work, it reports how many bytes were actually read into the buffer. If you use the vector as the buffer, you have to pre-allocate the vector to whatever max size you want, then set WSABUF::buf to point at the vector's internal memory, set WSABUF::len to the vector's allocated size, and then resize the vector to the new value that WSARecv() reports.

This size parameter of WSARecv is 32-bits, so in theory the function could return 2^32-1.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions