Skip to content
Snippets Groups Projects
Commit 5469563c authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

Repair sample-client after ->bytes rewrites.

parent 168e6904
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,9 @@ ...@@ -24,7 +24,9 @@
(define (run sock msg) (define (run sock msg)
(define resp (make-bytevector 512)) (define resp (make-bytevector 512))
(send sock (dns-message->bytes msg)) ;; TODO pack bytevector here
(send sock (call-with-values (lambda () ((dns-message->bytes msg) (make-bytevector 100) 0))
(lambda (_ bv ptr) bv)))
(recv! sock resp) (recv! sock resp)
(call-with-values (lambda () ((bytes->dns-message resp) 0)) (call-with-values (lambda () ((bytes->dns-message resp) 0))
(lambda (resp _) resp))) (lambda (resp _) resp)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment