Idris2Doc : IO.Async.Socket

IO.Async.Socket

(source)

Reexports

importpublic IO.Async.Posix
importpublic System.Posix.Socket

Definitions

socketnb : HasErrnoes=>PollHe=> (d : Domain) ->SockType->Asyncees (Socketd)
  Creates a new endpoint for communication returning a file descriptor
referring to that endpoint.

Unlike `System.Posix.Socket`, this will open the socket in
non-blocking mode (with the `O_NONBLOCK` flag set)

Totality: total
Visibility: export
acceptnb : HasErrnoes=>PollHe=>Socketd->Asyncees (Socketd)
  Listens on the given socket for incoming connections without blocking.

Totality: total
Visibility: export
connectnb : HasErrnoes=>PollHe=>Socketd->Addrd->Asyncees ()
  Connects a socket to the given address.

Totality: total
Visibility: export
recvnb : HasErrnoes=>PollHe=>Socketd-> (0r : Type) ->FromBufr=>Bits32->SockFlags->Asyncees (ReadResr)
  Reads at most `n` bytes from a socket.

Totality: total
Visibility: export