Added testdrive.md to describe experiments for feasibility and
reorganized some files
This commit is contained in:
parent
847a5d2b43
commit
bb0e49db30
20
feasibility_analysis/testdrive.md
Normal file
20
feasibility_analysis/testdrive.md
Normal file
@ -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
|
||||||
|
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user