Jon, Thanks!
-Vishal On Wednesday, December 6, 2017 at 12:19:07 AM UTC-5, Jon Zeppieri wrote: > > > > On Wed, Dec 6, 2017 at 12:13 AM, Vishal Prasad <[email protected] > <javascript:>> wrote: > >> And this is the client: >> >> >> (define (hello_socket port) >> (define-values (in out) (tcp-connect "localhost" port)) >> (write "hello socket world\n" out) >> (display (read in))) >> >> >> The client does not receive any text back, and just hangs on the read. >> >> >> The `write` is buffered. If you add a `(flush-output out)`, it will work. > > - Jon > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

