|
Holumbus.Distribution.DChan | Portability | portable | Stability | experimental | Maintainer | Stefan Schmidt (stefanschmidt@web.de) |
|
|
|
|
|
Description |
Version : 0.1
This module offers a distributed channel datatype (DChan).
It is similar to Control.Concurrent.Chan, except that you can use it
between multiple processes on different computers. You can access a
DChan (reading and writing) from your local process as well as from
another one.
|
|
Synopsis |
|
|
|
|
datatypes
|
|
|
The DChan datatype.
Notice that this datatype implements the Data.Binary typeclass.
That means that you can pass a DChan, so that another computer
can access the channel.
| Instances | |
|
|
creating and closing channels
|
|
|
Creates a new DChan on the local computer. The first parameter
is the name of the Channel which could be used in other processes to
access this stream. If you leave it empty, a random Id will be created.
|
|
|
Creates a reference to a DChan which was created in a different
process.
The first parameter is the name of the resource and the second one
the name of the node.
|
|
|
Closes a DChan object, could not be used anymore after this call.
|
|
operations on a channel
|
|
|
Writes data to a DChan.
|
|
|
Reads data from a DChan, blocks if DChan is empty.
|
|
|
Tries to read data from a DChan, if the DChan is empty,
the function return with Nothing.
|
|
|
Reads data from a DChan. If the channel is empty, it waits
for a given time (in microseconds) an returns immediately
when new data arrives, otherwise it return Nothing.
|
|
|
Tests, if a DChan is empty.
|
|
Produced by Haddock version 2.6.1 |