package sfml

  1. Overview
  2. Docs
type t
exception Socket_Not_Ready
exception Socket_Disconnected
exception Socket_Error
val init : unit -> unit
val create : unit -> t
val destroy : listener:t -> unit
val setBlocking : listener:t -> blocking:bool -> unit
val isBlocking : listener:t -> bool
val getLocalPort : listener:t -> int
val listen : listener:t -> ?address:SFIpAddress.t -> port:int -> unit
val accept : listener:t -> SFTcpSocket.t