Megatest

Diff
Login

Differences From Artifact [f2f99ff8c5]:

To Artifact [1116143dd3]:


3282
3283
3284
3285
3286
3287
3288
3289















3290
3291
3292
3293
3294
3295
3296
             (debug:print-info 0 "failed to write out packet to " pktsdir ", exn=" exn) ;; don't care if this failed for now but MUST FIX - BUG!!
             (if (not (file-exists? pktsdir))
                 (create-directory pktsdir #t))
             (with-output-to-file
                 (conc pktsdir "/" uuid ".pkt")
               (lambda ()
                 (print pkt)))))))))
	















;; common:with-queue-db was here
;; common:load-pkts-to-db was here

(define (common:get-pkt-alists pkts)
  (map (lambda (x)
	 (alist-ref 'apkt x)) ;; 'pkta pulls out the alist from the read pkt
       pkts))







|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
             (debug:print-info 0 "failed to write out packet to " pktsdir ", exn=" exn) ;; don't care if this failed for now but MUST FIX - BUG!!
             (if (not (file-exists? pktsdir))
                 (create-directory pktsdir #t))
             (with-output-to-file
                 (conc pktsdir "/" uuid ".pkt")
               (lambda ()
                 (print pkt)))))))))

;;======================================================================
;; use-lt is use linktree "lt" link to find pkts dir
(define (common:minimal-save-pkt pktalist pktsdir)
  (let-values (((uuid pkt)
		(alist->pkt pktalist common:pkts-spec)))
    (handle-exceptions
     exn
     (debug:print-info 0 "failed to write out packet to " pktsdir ", exn=" exn) ;; don't care if this failed for now but MUST FIX - BUG!!
     (if (not (file-exists? pktsdir))
	 (create-directory pktsdir #t))
     (with-output-to-file
	 (conc pktsdir "/" uuid ".pkt")
       (lambda ()
	 (print pkt))))))

;; common:with-queue-db was here
;; common:load-pkts-to-db was here

(define (common:get-pkt-alists pkts)
  (map (lambda (x)
	 (alist-ref 'apkt x)) ;; 'pkta pulls out the alist from the read pkt
       pkts))