package zmq

  1. Overview
  2. Docs

Module Make.RouterSource

Sourcetype id_t

Identity of a socket connected to the router.

Sourceval id_of_string : string -> id_t

id_of_string s coerces s into an id_t.

Sourceval recv : [ `Router ] t -> (id_t * string list) deferred

recv socket waits for a message on socket without blocking other Lwt threads.

Sourceval send : [ `Router ] t -> id_t -> string list -> unit deferred

send socket id message sends message on socket to id without blocking other Lwt threads.

OCaml

Innovation. Community. Security.