Fix incorrect return value when opening sockets.
Windows IOCP socket implementation.
Implement Windows socket read/write
Rename setsockopt param to make size explicit.
Unregister from events before detaching socket from stream.
Fix deadlock when closing socket.
Simplify socket setup.