(define %default-port 8889)
(define-class <network-manager> (<actor>)
- (server-socket #:accessor nm-server-socket)
+ (server-socket #:getter nm-server-socket)
;; mapping of client -> client-id
- (clients #:accessor nm-clients
+ (clients #:getter nm-clients
#:init-thunk make-hash-table)
;; send input to this actor
(send-input-to #:getter nm-send-input-to
;; (sigaction SIGPIPE SIG_IGN)
;; Will this break other things that use pipes for us though?
- (set! (nm-server-socket nm) s)
+ (slot-set! nm 'server-socket s)
(format #t "Listening for clients in pid: ~s\n" (getpid))
(8sync-port s #:read (lambda (s) (nm-new-client nm s)))