hosc-0.1: Haskell Open Sound Control
Sound.OpenSoundControl.Transport
Synopsis
class Transport t whereSource
Abstract over the underlying transport protocol.
Methods
send :: t -> OSC -> IO ()Source
Encode and send an OSC packet.
recv :: t -> IO OSCSource
Receive and decode an OSC packet.
close :: t -> IO ()Source
Close an existing connection.
Instances
withTransport :: Transport t => IO t -> (t -> IO a) -> IO aSource
Bracket OSC communication.
wait :: Transport t => t -> String -> IO OSCSource
Wait for an OSC message with the specified address, discarding intervening messages.