1.2 Client
1.2.1 Connection
1.2.2 Bot
1.2.3 Action
1.2.4 Tactics
1.2.5 Wandering
1.2.6 Gathering
1.2.7 TCP Client
1.2.8 Viewer
1.2.9 TCP Viewer
8.14
1.2.9 TCP Viewer🔗

Source code at tcp-viewer.rkt

The TCP viewer connects to a TCP server and opens a viewer window..

(define (do-actions) #t)

(define (run)
  (let ([connection (connect-remote "localhost" 8080)])
    (define (draw-procedure draw-entity)
      (for ([entity (connection request-draw)])
        (apply draw-entity entity)))
  (viewer "robots - localhost:8080" draw-procedure do-actions)))

(run)