8.14
1.2.1 Connection
Source code at connection.rkt
A connection is a function that sends a request to the server and receives a reply.
(define (connect-remote host port) (let-values ([(in out) (tcp-connect host port)]) (file-stream-buffer-mode in 'none) (λ (request) (write request out) (flush-output out) (read in))))