Socket functionality for WindowsPoller

Current state of the Windows port: all tests in common/ pass
Again, the test needs to run, as the function gets called, it's just the assert that needs changing.