Re: [racket-users] Racket Echo Server/Client hanging

2017-12-05 Thread Vishal Prasad
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 > wrote: > >> And this is the client: >> >> >> (define (hello_socket port) >> (define-values (in out) (tcp-connect

Re: [racket-users] Racket Echo Server/Client hanging

2017-12-05 Thread Jon Zeppieri
On Wed, Dec 6, 2017 at 12:13 AM, Vishal Prasad 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

[racket-users] Racket Echo Server/Client hanging

2017-12-05 Thread Vishal Prasad
Really embarrassed I can't figure out what's going on here, but I just spent the last two hours banging my head against this going nowhere. I'm trying to create a simple echo server and client in Racket. This is the server: (define (hello_listen port) (define listener (tcp-listen