HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulenetwork-mux-0.11.0.0Haskell2010

Network.Mux.Bearer.Socket

  • 1 value
valuesocketAsBearer
  1. :: SDUSize
  2. -> Int
  3. -> Maybe (ReadBuffer IO)
  4. -> DiffTime

    SDU timeout

  5. -> DiffTime

    egress poll interval

  6. -> Socket
  7. -> Bearer IO
#

Create MuxBearer from a socket.

On Windows System.Win32.Async operations are used to read and write from a socket. This means that the socket must be associated with the I/O completion port with System.Win32.Async.IOManager.associateWithIOCompletionPort.

Note: IOExceptions thrown by sendAll and recv are wrapped in MuxError.