Idris2Doc : Control.Linear.Network

Control.Linear.Network

Reexports

importpublic Data.Either
importpublic Data.Maybe
importpublic Network.Socket.Data

Definitions

dataSocketState : Type
Totality: total
Visibility: public export
Constructors:
Ready : SocketState
Bound : SocketState
Listening : SocketState
Open : SocketState
Closed : SocketState
dataAction : SocketState->Type
  Define the domain of SocketState transitions.
Label every such transition.

Totality: total
Visibility: public export
Constructors:
Bind : ActionReady
Listen : ActionBound
Accept : ActionListening
Connect : ActionReady
Send : ActionOpen
Receive : ActionOpen
Close : Actionst
dataSocket : SocketState->Type
Totality: total
Visibility: export
Constructor: 
MkSocket : Socket->Socketst
Next : Actionst->Bool->Type
  For every label of a SocketState transition
and a success value of the transition,
define its result.

Visibility: public export
newSocket : LinearIOio=>SocketFamily->SocketType->ProtocolNumber-> ((1_ : SocketReady) ->Lio ()) -> (SocketError->Lio ()) ->Lio ()
Visibility: export
close : LinearIOio=> (1_ : Socketst) ->L1io (SocketClosed)
Visibility: export
done : LinearIOio=> (1_ : SocketClosed) ->Lio ()
Visibility: export
bind : LinearIOio=> (1_ : SocketReady) ->MaybeSocketAddress->Port->L1io (Res (MaybeSocketError) (\res=>NextBind (isNothingres)))
Visibility: export
connect : LinearIOio=> (1_ : SocketReady) ->SocketAddress->Port->L1io (Res (MaybeSocketError) (\res=>NextConnect (isNothingres)))
Visibility: export
listen : LinearIOio=> (1_ : SocketBound) ->L1io (Res (MaybeSocketError) (\res=>NextListen (isNothingres)))
Visibility: export
accept : LinearIOio=> (1_ : SocketListening) ->L1io (Res (MaybeSocketError) (\res=>NextAccept (isNothingres)))
Visibility: export
send : LinearIOio=> (1_ : SocketOpen) ->String->L1io (Res (MaybeSocketError) (\res=>NextSend (isNothingres)))
Visibility: export
recv : LinearIOio=> (1_ : SocketOpen) ->ByteLength->L1io (Res (EitherSocketError (String, ResultCode)) (\res=>NextReceive (isRightres)))
Visibility: export
recvAll : LinearIOio=> (1_ : SocketOpen) ->L1io (Res (EitherSocketErrorString) (\res=>NextReceive (isRightres)))
Visibility: export
sendBytes : LinearIOio=> (1_ : SocketOpen) ->ListBits8->L1io (Res (MaybeSocketError) (\res=>NextSend (isNothingres)))
Visibility: export
recvBytes : LinearIOio=> (1_ : SocketOpen) ->ByteLength->L1io (Res (EitherSocketError (ListBits8)) (\res=>NextReceive (isRightres)))
Visibility: export
recvAllBytes : LinearIOio=> (1_ : SocketOpen) ->L1io (Res (EitherSocketError (ListBits8)) (\res=>NextReceive (isRightres)))
Visibility: export