Use enum class for net/io_state