package osc

  1. Overview
  2. Docs

Types and functions for handling servers for this type of transport.

type t

A type encapsulating a server for this type of transport, and its state.

val create : sockaddr -> int -> 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 Io.t

Destroy a transport server.

val recv_string : t -> (string * sockaddr) Io.t

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

OCaml

Innovation. Community. Security.