From 49a079922ebe30ea76ca00fc874cfa4017b1a510 Mon Sep 17 00:00:00 2001 From: Ibrahim Mkusa Date: Thu, 30 Mar 2017 00:44:40 -0400 Subject: reorganized some stuff, started experimenting with racket/gui --- feasibility_analysis/tcpvanilla/testdrive.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 feasibility_analysis/tcpvanilla/testdrive.md (limited to 'feasibility_analysis/tcpvanilla/testdrive.md') diff --git a/feasibility_analysis/tcpvanilla/testdrive.md b/feasibility_analysis/tcpvanilla/testdrive.md new file mode 100644 index 0000000..b8e2883 --- /dev/null +++ b/feasibility_analysis/tcpvanilla/testdrive.md @@ -0,0 +1,20 @@ +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 + +``` -- cgit v1.2.3