CurryInfo: cpns-3.0.0 / Network.NamedSocket.waitForSocketAccept

definition:
waitForSocketAccept :: Socket -> Int -> IO (Maybe (String,Handle))
waitForSocketAccept (NamedSocket _ socket) = Socket.waitForSocketAccept socket
demand:
argument 1
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:
{({NamedSocket}) |-> {waitForSocketAccept}}
name:
waitForSocketAccept
precedence:
no precedence defined
result-values:
{waitForSocketAccept}
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