talex5 / ocaml-wayland

Pure OCaml Wayland protocol implementation
Other
72 stars 5 forks source link

Improve connection shutdown #22

Closed talex5 closed 3 years ago

talex5 commented 3 years ago

Add shutdown and connected methods to the transport API. Call shutdown to start a clean shutdown of the connection. Use connected to detect that a connection is shutting down (to avoid logging pointless errors).

Add close and socket methods to unix_transport.