Implement fake_socket pending write/read mechanism.
Draft net_simulator main algorithm.