I discovered that the following code loops with 100% CPU usage:
byte[] buffer = new byte[0x10000]; while (true) { if (socket.Poll (5000000, SelectMode.Se
Have you read the documentation?
0 bytes read means that the remote end point have disconnected.
Either use blocking sockets or use the asynchronous methods like BeginReceive(). There is no need for Poll in .Net.
BeginReceive()
Poll