Megatest

Diff
Login

Differences From Artifact [0281515147]:

To Artifact [70f5180be8]:


377
378
379
380
381
382
383
384

385

386
387



388
389
390
391
392
393
394
395
396

397
398

399

400
401
402
403
404
405
406
377
378
379
380
381
382
383

384
385
386


387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402

403
404
405
406
407
408
409
410







-
+

+
-
-
+
+
+









+


+
-
+







;; (map ip->string (vector->list 
;; 		   (hostinfo-addresses
;; 		    (host-information (current-hostname))))))


)

(import ulex trace big-chicken srfi-18)
(import ulex trace big-chicken srfi-18 test)
(trace-call-sites #t)
(trace
(trace ulex-handler
       send)
 ;; ulex-handler
 ;; send
 )
 
(define (handler-proc . data)
  (print "handler-proc, got: "data)
  `(data ,data))

(define uconn (run-listener handler-proc))

(pp-uconn uconn)

;; super basic loop back test
(define res #f)
(define th1 (make-thread (lambda ()
			   (test #f 'ack (send-receive uconn "zeus:4242" 'ping '())))
			   (set! res (send-receive uconn "zeus:4242" 'ping '())))))
			   (set! res (send-receive uconn "zeus:4242" 'ping '()))))
(thread-start! th1)
(thread-join! th1)
		
(thread-sleep! 1)
(print "All done")
(print "Received "res)