Safe Haskell | None |
---|---|
Language | Haskell98 |
OSC over TCP implementation.
Documentation
The TCP transport handle data type.
openTCP :: String -> Int -> IO TCP Source #
Make a TCP
connection.
import Sound.OSC.Core import Sound.OSC.Transport.FD import Sound.OSC.Transport.FD.TCP let t = openTCP "127.0.0.1" 57110 let m1 = message "/dumpOSC" [Int32 1] let m2 = message "/g_new" [Int32 1] withTransport t (\fd -> let f = sendMessage fd in f m1 >> f m2)