opensoundcontrol-ht-0.1.1.1: Haskell OpenSoundControl utilities

Safe HaskellNone

Sound.OpenSoundControl.Transport.Monad.IO

Description

Run a generic Transport monad action in the IO monad using the IO transport types, e.g. TCP, UDP, or File.

Synopsis

Documentation

type T t = ReaderT t IOSource

class Transport t

Abstract over the underlying transport protocol.

Instances

send :: C m => OSC -> m ()Source

Encode and send an OSC packet.

recv :: C m => m OSCSource

Receive and decode an OSC packet.

wait :: C m => String -> m OSCSource

A waitFor for variant matching on address string of messages.

waitFor :: C m => (OSC -> Maybe a) -> m aSource

Wait for an OSC message where the supplied function does not give Nothing, discarding intervening messages.

with :: Transport t => IO t -> T t a -> IO aSource

Bracket Open Sound Control communication.