package sfml

  1. Overview
  2. Docs
Bindings to the SFML multimedia library

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-sfml-0.09.2.tar.gz
sha256=ce1e50dec69a4495232261627a359a8fb54d79788147380bee78b0983f8b6951
md5=9ae99bb47bb68d5181d01b7bbc78a351

doc/sfml.network/SFUdpSocket/index.html

Module SFUdpSocket

Online documentation for the UdpSocket class

type t
exception Socket_Not_Ready
exception Socket_Disconnected
exception Socket_Partial
exception Socket_Error
val init : unit -> unit
val create : unit -> t
val destroy : socket:t -> unit
val setBlocking : socket:t -> blocking:bool -> unit
val bind : socket:t -> ?address:SFIpAddress.t -> port:int -> unit
val unbind : socket:t -> unit
val send : socket:t -> data:string -> address:SFIpAddress.t -> port:int -> unit
val receive : socket:t -> data:bytes -> int * SFIpAddress.t * int
val sendPacket : socket:t -> packet:SFPacket.t -> address:SFIpAddress.t -> port:int -> unit
val receivePacket : socket:t -> packet:SFPacket.t -> SFIpAddress.t * int
val isBlocking : socket:t -> bool
val getLocalPort : socket:t -> int
val maxDatagramSize : unit -> int
OCaml

Innovation. Community. Security.