Hermes/tests/tcpvanilla
2017-04-14 09:57:40 -04:00
..
client2.rkt reorganized repo a bit better 2017-04-09 22:37:50 -04:00
client.rkt reorganized repo a bit better 2017-04-09 22:37:50 -04:00
README.md reorganized repo a bit better 2017-04-09 22:37:50 -04:00
server.rkt reorganized repo a bit better 2017-04-09 22:37:50 -04:00
tcpcommunication.rkt tidied up 2017-04-14 09:57:40 -04:00
tcptalk.rkt reorganized repo a bit better 2017-04-09 22:37:50 -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