bert-1.2: BERT implementation
Network.BERT.Client
Description
BERT-RPC client (http://bert-rpc.org/). This implements the client RPC call logic.
Synopsis
type Call a = IO (Either Error a)Source
Convenience type for call
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.
{mod, func, args}
transport
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.