Hermes/feasibility_analysis/tcpvanilla
2017-04-02 02:15:53 -04:00
..
client2.rkt reorganized some stuff, started experimenting with racket/gui 2017-03-30 00:44:40 -04:00
client.rkt reorganized some stuff, started experimenting with racket/gui 2017-03-30 00:44:40 -04:00
README.md testdrive.md to README.md. We can have nested *.mds 2017-04-02 02:15:53 -04:00
server.rkt reorganized some stuff, started experimenting with racket/gui 2017-03-30 00:44:40 -04:00
tcptalk.rkt reorganized some stuff, started experimenting with racket/gui 2017-03-30 00:44:40 -04:00

a simple experiment on communication via tcp ports

a server runs continously servicing clients. Clients connect, send a message, and server replies with a message. Message should appear in each separate REPL area prompt

run server.rkt in a REPL

,en server.rkt 
(define stop (serve 8080))  ;; starts serve listening at port 8080
(stop) ;; to stop server and free the ports

run client.rkt in a separate REPL

,en client.rkt
(define stop (client 8080)) ;; starts client talking to server at port 8080