Safe Haskell | None |
---|
BERT-RPC client (http://bert-rpc.org/). This implements the client RPC call logic.
Example
t <- tcpClient "localhost" 8080 r <- call t "calc" "add" ([123, 3000]::[Int]) case r of Right res -> print (res :: Int) Left _ -> putStrLn "error"
call :: (BERT a, BERT b, Transport t) => t -> String -> String -> [a] -> Call bSource
Call the {mod, func, args}
synchronously on the endpoint
defined by transport
, returning the results of the call or an
error.