yaml-rpc-0.1: Simple library for network (TCP/IP) YAML RPCSource codeContentsIndex
Network.YAML.Caller
Synopsis
sendYAML :: (ByteString, Int) -> ByteString -> IO ByteString
call :: (IsYamlObject a, IsYamlObject b) => (ByteString, Int) -> ByteString -> a -> IO b
callDynamic :: (IsYamlObject a, IsYamlObject b) => (ByteString -> IO (ByteString, Int)) -> ByteString -> ByteString -> a -> IO b
callF :: (IsYamlObject a, IsYamlObject b) => (ByteString -> IO (ByteString, Int)) -> ByteString -> ByteString -> (a, MVar b) -> IO ()
callP :: (IsYamlObject a, IsYamlObject b) => (ByteString -> IO (ByteString, Int)) -> ByteString -> ByteString -> [a] -> IO [b]
Documentation
sendYAMLSource
:: (ByteString, Int)(Hostname, port)
-> ByteStringYAML text
-> IO ByteStringAnswer
Send any YAML text and return an answer
callSource
:: (IsYamlObject a, IsYamlObject b)
=> (ByteString, Int)(Host name, port number)
-> ByteStringName of method
-> aArgument for method
-> IO b
Call remote method
callDynamicSource
:: (IsYamlObject a, IsYamlObject b)
=> ByteString -> IO (ByteString, Int)Get (Host name, port number) from service name
-> ByteStringName of the service
-> ByteStringName of method
-> aArgument for method
-> IO b
Similar, but select server on each call
callFSource
:: (IsYamlObject a, IsYamlObject b)
=> ByteString -> IO (ByteString, Int)Get (Host, port) from service name
-> ByteStringService name
-> ByteStringMethod name
-> (a, MVar b)(Argument, MVar for result)
-> IO ()
Call a method and put it's result into MVar
callPSource
:: (IsYamlObject a, IsYamlObject b)
=> ByteString -> IO (ByteString, Int)Get (Host, port) from service name
-> ByteStringService name
-> ByteStringMethod name
-> [a]List of arguments
-> IO [b]
Call a method for each argument in the list in parallel (it can run method for each argument on another server)
Produced by Haddock version 2.6.1