CurryInfo: cpns-3.0.0 / Network.CPNS.cpnsAlive

definition: Info
 
cpnsAlive :: String -> IO Bool
cpnsAlive host = catch tryPingCPNS (\_ -> return False)
 where
  tryPingCPNS = do
    h <- connectToSocket host cpnsSocket
    hPutStrLn h (show Ping)
    hFlush h
    answer <- hWaitForInput h cpnsTimeOut
    hClose h
    return answer
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
Tests whether the CPNS demon at a host is alive, i.e.,
reacts on `Ping` message.
failfree: Info
 _
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_) |-> _}
name: Info
 cpnsAlive
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 String -> Prelude.IO Prelude.Bool
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term