bert-1.2: BERT implementation

Safe HaskellNone



BERT-RPC client ( This implements the client RPC call logic.



type Call a = IO (Either Error a)Source

Convenience type for call

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.

tcpClient :: HostName -> PortNumber -> IO TCPSource

Establish a connection to the TCP server and return the resulting transport. It can be used to make multiple requests.