Go backward to node : Creating NodesGo up to 4.2 Constructing the Network |
link
: Linking Nodeslink(n1, n2) Node n1 Node n2 link(n1, n2, s) Node n1 Node n2 Selector s
The first function creates a uni-directional point-to-point channel from
n1 to n2 whose messages are delivered using the default
selector. The set of
output channels out
of n1 is extended by one element
representing the sender side of the channel; likewise the set of input
channels in
of n2 is extended by one element
representing the corresponding receiver side.
The second function behaves like the first one except for the fact that selector s is used for the delivery of messages from this channel.