CurryInfo: socket-3.0.0 / Network.Socket.waitForSocketAccept

definition:
waitForSocketAccept :: Socket -> Int -> IO (Maybe (String,Handle))
waitForSocketAccept s timeout = (prim_waitForSocketAccept $## s) $# timeout
demand:
arguments 1 2
deterministic:
deterministic operation
documentation:
--- Waits until a connection of a client to a socket is available.
--- If no connection is available within the time limit, it returns Nothing,
--- otherwise the connection is returned as a pair consisting
--- of a string identifying the client
--- (the format of this string is implementation-dependent)
--- and a handle to a stream communication with the client.
--- @param socket - a socket
--- @param timeout - milliseconds to wait for input (< 0 : no time out)
failfree:
(_, _)
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_,_) |-> _}
name:
waitForSocketAccept
precedence:
no precedence defined
result-values:
_
signature:
Socket -> Prelude.Int -> Prelude.IO (Prelude.Maybe (String, System.IO.Handle))
solution-complete:
operation might suspend on free variables
terminating:
yes
totally-defined:
reducible on all ground data terms