net-concurrent-0.1.0: Concurrent over the network execution library
Control.Concurrent.Network.Slave
Contents
Description
Slave processes have a single connection towards the master for simplicity. Communication is done by using NVar variables similar to MVar in Concurrent.
NVar
MVar
Synopsis
data NCContext Source
the NC Context
Constructors
Fields
initSlave :: HostName -> PortID -> IO NCContextSource
Initialises a slave process returning the NC context.
slaveID :: NCContext -> IO IntSource
Returns the slave ID of the caller
numSlaves :: NCContext -> IO IntSource
Number of slaves
printMsg :: NCContext -> String -> IO ()Source
Prints a message on master