package osc

  1. Overview
  2. Docs

Types and functions for handling OSC servers.

type t

An OSC server.

val create : T.sockaddr -> int -> t T.Io.t

create addr buffer_length creates a new server listening on sockaddr. The server will be able to receive messages of length up to buffer_length.

val destroy : t -> unit T.Io.t

Destroy an OSC server.

val recv : t -> (Types.packet * T.sockaddr, [ `Missing_typetag_string | `Unsupported_typetag of char ]) Result.result T.Io.t

Retrieve a packet sent to the server, as well as the sending client's address.

OCaml

Innovation. Community. Security.