Abstract over the underlying transport protocol.
Methods
sendPacket :: t -> Packet -> IO ()Encode and send an Osc packet.
recvPacket :: t -> IO PacketReceive and decode an Osc packet.
close :: t -> IO ()Close an existing connection.
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
Modulehosc-0.20Haskell2010
An abstract transport layer with implementations for Udp and Tcp transport.
Abstract over the underlying transport protocol.
sendPacket :: t -> Packet -> IO ()Encode and send an Osc packet.
recvPacket :: t -> IO PacketReceive and decode an Osc packet.
close :: t -> IO ()Close an existing connection.
Bracket Osc communication.
Variant of recvPacket that runs packet_to_bundle.
Variant of recvPacket that runs packet_to_message.
Variant of recvPacket that runs packetMessages.
waitFor packet_to_message, ie. an incoming Message or immediate mode Bundle with one element.
A waitFor for variant using packet_has_address to match on
the Address_Pattern of incoming Packets.
Variant on waitAddress that returns matching Message.
Variant of waitReply that runs messageDatum.