Implement ANetwork under windows using select