20 lines
602 B
Common Lisp
20 lines
602 B
Common Lisp
;;;; cl-scopes/csys/environ - communication system environment
|
|
|
|
(defpackage :scopes/csys/environ
|
|
(:use :common-lisp)
|
|
(:local-nicknames (:actor :scopes/core/actor)
|
|
(:csys :scopes/csys)
|
|
(:message :scopes/core/message)
|
|
)
|
|
(:export #:forward #:forward-message)
|
|
)
|
|
|
|
(in-package :scopes/csys/environ)
|
|
|
|
(defun forward-message (head scope &key data customer)
|
|
(forward (message:create head :data data :customer customer) scope))
|
|
|
|
(defun forward (msg scope)
|
|
(dolist (cell (find-cells (message:addr msg) scope))
|
|
(actor:send cell msg)))
|
|
|