Modulehosc-0.21.1Haskell2010
Sound.Osc.Transport.Fd.Tcp
Osc over Tcp implementation.
- 1 type
- 12 values
- Packagehosc-0.21.1
- Exports13
- LanguageHaskell2010
- LicenceGPL-3.0-only
- SourceTcp.hs
Send data over Tcp.
Send packet over Tcp.
Receive packet over Tcp.
Close Tcp.
Bracket Tcp communication.
Create and initialise Tcp socket.
Create and initialise Tcp.
Make a Tcp connection.
import Sound.Osc.Datum
import Sound.Osc.Time
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)accept connection at s and run f.
A trivial Tcp Osc server.