For the third parameter of the recv() function MSDN says:
"The length, in bytes, of the buffer pointed to by the buf parameter."
Does it mean the size of the char variable or the length of the data in it?
For example: "Hello world" is 12 characters long (with the '\0') which would be 1 byte because you can put 256 characters in one byte.
If its the size of the variable its also enough 1 byte ( char ) for the same reason i guess.
Im a bit confused why everybody's using big numbers like 32, 64 etc...
Code:char buf; recv(s, buf, 1, 0);