From 44c715c55c239495da8f780276866c0041f04139 Mon Sep 17 00:00:00 2001 From: Ibrahim Mkusa Date: Sun, 9 Apr 2017 22:46:18 -0400 Subject: final polish for release for 0.2 --- Hermes/concurrentreadandprint.rkt | 8 +++----- Hermes/tcpcommunication.rkt | 3 +++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Hermes/concurrentreadandprint.rkt b/Hermes/concurrentreadandprint.rkt index f67f1dd..95d02c1 100644 --- a/Hermes/concurrentreadandprint.rkt +++ b/Hermes/concurrentreadandprint.rkt @@ -1,12 +1,10 @@ #lang racket (require math/base) ;; for random number generation +;; a proof of concept +;; one thread waits for input +;; another displays messages in the background -;; author: Ibrahim Mkusa -;; about: print and read concurrently -;; notes: output may need to be aligned and formatted nicely -;; look into -;; https://docs.racket-lang.org/gui/text-field_.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text-field~25%29._get-editor%29%29 ;; create custodian for managing all resources ;; so we can shutdown everything at once diff --git a/Hermes/tcpcommunication.rkt b/Hermes/tcpcommunication.rkt index 27a5151..134e697 100644 --- a/Hermes/tcpcommunication.rkt +++ b/Hermes/tcpcommunication.rkt @@ -1,4 +1,7 @@ #lang racket +;; Reads input iteratively then sends it to local server +;; client reads back the message and displays it + (require math/base) ;; for random number generation (define listener (tcp-listen 4326 5 #t)) -- cgit v1.2.3