| Copyright | (c) 2014, Rodrigo Setti |
|---|---|
| License | MIT |
| Maintainer | rodrigosetti@gmail.com |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.MessagePack
Description
Documentation
type Method = Object -> IO (Either String Object) Source
The type of a message pack RPC method. It gets an Object as a parameter, and returns either an error or the result as an Object.
runRPC :: Map String Method -> HostPreference -> ServiceName -> IO () Source
Start the RPC server binding the socket using the given preferences, and using the RPC methods defined in the map of method name -> Method.