Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
type Content tag ps s c = (PeerInfo ps, Specific tag ps s c, Serializable c, Show c) Source #
constraint type
c is Message content type, implementation-specific
class Specific tag ps s c | tag -> ps, tag -> s, tag -> c where Source #
methods in this instance are called in library, defined in the program (this or another program that consumes this library)
see example implementation in Control.Distributed.Raketka.Impl.Inst
Control.Distributed.Raketka.Impl.Inst is part of the package, is not displayed in docs because it is part of a program, not the library.
see also Main.hs there is important code there
c is Message content type, implementation-specific
startServer :: Tagged tag ServerId -> s -> Process () Source #
handleMessage :: Tagged tag (Server ps s) -> c -> Process () Source #
onPeerConnected :: Tagged tag (Server ps s) -> ProcessId -> Process () Source #
onPeerDisConnected :: Tagged tag (Server ps s) -> ProcessId -> Process () Source #
class PeerInfo ps where Source #
onPeerConnected' :: ps -> ProcessId -> ps Source #
onPeerDisConnected' :: ps -> ProcessId -> ps Source #