Multicast
structure
signature MULTICAST
structure Multicast
: MULTICAST
Multicast channels provide a mechanism for broadcasting a stream of messages to a collection of threads. Threads receive multicast messages via an output port; each port receives its own copy of every message sent since the port was created. Multicast channels are particularly useful for communicating with a dynamically varying group of threads, since the sender does not need to know how many threads are listening.
type 'a event = 'a CML.event
type 'a mchan
type 'a port
val mChannel : unit -> 'a mchan
val port : 'a mchan -> 'a port
val copy : 'a port -> 'a port
val recv : 'a port -> 'a
val recvEvt : 'a port -> 'a event
val multicast : 'a mchan * 'a -> unit
type 'a mchan
type 'a port
mChannel ()
port mc
copy p
copy
operation is performed, then it may not be accurate.
recv p
recvEvt p
recv
operation on the port p.
multicast (mc, v)
Last Modified &date;
Comments to John Reppy.
Copyright © 1991-2003 John Reppy