[racket] help simple networking

From: Noel Welsh (noelwelsh at gmail.com)
Date: Fri Oct 8 05:08:58 EDT 2010

On Fri, Oct 8, 2010 at 6:56 AM,  <kty1104 at gmail.com> wrote:
> could somebody please let me know what I have to do?
> server source:
> #lang racket
> (require racket/tcp)
> (define listener (tcp-listen 12345))
> (let echo-server ()
> (define-values (in out) (tcp-accept listener))
> (display "received")

Right here, you are displaying "received" to the standard output
(terminal) rather than the network port named out you just opened
above. Fix that and your program should work.


Posted on the users mailing list.