HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulehosc-0.20Haskell2010

Sound.Osc.Transport.Fd.Tcp

Osc over Tcp implementation.

  • 1 type
  • 11 values
  • Packagehosc-0.20
  • Exports12
  • LanguageHaskell2010
  • LicenceGPL-3.0-only
  • SourceTcp.hs
newtypenewtype Tcp
#

The Tcp transport handle data type.

Constructors

Instances1Transport
  • Transport TcpDefined in hosc-0.20 · Sound.Osc.Transport.Fd.Tcp

    Tcp is an instance of Transport.

valueopenTcp :: String -> Int -> IO Tcp
#

Make a Tcp connection.

import Sound.Osc.Datum {- hosc -}
import Sound.Osc.Time {- hosc -}
let t = openTcp "127.0.0.1" 57110
let m1 = Packet.message "/dumpOsc" [Int32 1]
let m2 = Packet.message "/g_new" [Int32 1]
Fd.withTransport t (\fd -> let f = Fd.sendMessage fd in f m1 >> pauseThread 0.25 >> f m2)