diff options
author | Ibrahim Mkusa <ibrahimmkusa@gmail.com> | 2017-04-09 22:46:18 -0400 |
---|---|---|
committer | Ibrahim Mkusa <ibrahimmkusa@gmail.com> | 2017-04-09 22:46:18 -0400 |
commit | 44c715c55c239495da8f780276866c0041f04139 (patch) | |
tree | f65cd2dd2ebf566b24dbab33f2a0762111b0cc14 | |
parent | cb381871d518077649be6272af823dabec2fcd28 (diff) |
final polish for release for 0.2
-rw-r--r-- | Hermes/concurrentreadandprint.rkt | 8 | ||||
-rw-r--r-- | 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)) |