[Haskell-cafe] How to send a string somewhere via UDP

Rohan Drape rohan.drape at gmail.com
Tue Oct 21 22:56:45 UTC 2014


> aiosc.send(('127.0.0.1', 9000), "This is a message from Python") )

isn't this sending an OSC packet?  not a plain UDP packet?

perhaps see http://hackage.haskell.org/package/hosc

import Sound.OSC
withMax = withTransport (openUDP "127.0.0.1" 9000)
main = withMax (sendMessage (Message "/this-is-a-message-from-haskell" []))



More information about the Haskell-Cafe mailing list