package tiny_libs

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Universe_serverSource

Sourcetype iworld = int
Sourcetype 'u bundle = 'u * (iworld * string) list * iworld list
Sourcetype 'u t
Sourceval create : < Cap.network.. > -> ?bind:string -> ?port:int -> 'u -> ?on_new:('u -> iworld -> 'u bundle) -> ?on_msg:('u -> iworld -> string -> 'u bundle) -> ?on_disconnect:('u -> iworld -> 'u bundle) -> unit -> 'u t * int
Sourceval step : 'u t -> unit
Sourceval state : 'u t -> 'u
Sourceval universe : < Cap.network.. > -> ?bind:string -> ?port:int -> 'u -> ?on_new:('u -> iworld -> 'u bundle) -> ?on_msg:('u -> iworld -> string -> 'u bundle) -> ?on_disconnect:('u -> iworld -> 'u bundle) -> unit -> unit