Who can explain how to use WSARecv? I see that there you need to pass a previously prepared buffer for reading, and it annoys me every time. Is there an option where I can only get the size of the incoming data? And I will read it myself.
Periodically looking for easier ways to work with sockets. But unfortunately I’m stubbornly staying on the standard POSIX: socket(), listen(), select()
version POSIX: socket(), listen(), select()
...
Are there simple and smart options for working with sockets for Linux and Windows? Consisting of receiving messages about data in a socket and the ability to write to it. I think to read about working with sockets through signals on Linux. And as an option to rewrite the TCP stack, unfortunately this code will require administrator rights.