X-Git-Url: https://jxself.org/git/?p=mudsync.git;a=blobdiff_plain;f=mudsync%2Fnetworking.scm;h=fe641cc9a227556ee945a8fc58b18a5f3b052ea3;hp=76758c17dd15a42515b997130591f229a57492ec;hb=7248fd4470039dab59a8e3a95829952e91c0fd19;hpb=d539213774955a5593ec760f06022aeecf4e1abc diff --git a/mudsync/networking.scm b/mudsync/networking.scm index 76758c1..fe641cc 100644 --- a/mudsync/networking.scm +++ b/mudsync/networking.scm @@ -19,9 +19,9 @@ (define %default-port 8889) (define-class () - (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 @@ -87,7 +87,7 @@ ;; (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)))