Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=2ecd4e009ed19e4d961d9b8a4a09f546
sha512=2fbfd846baebd259a8486be2af856569ee6f056298e8cf5874ba76f5c207626cc5854abe2e091d670f9bb605eeb19a416e47b3c8474b8cbc5957f6293b3ccddb
Description
This module provides OCaml ctypes bindings to system-specific low-level socket structure and data-types.
The interface is implemented using ocaml-ctypes and in intended to exposed the machine-specific, low-level details of the most important parts of socket implementations.
This package provides the part of the API that is specific to Unix systems.
Added to opam-repository:
README
sys-socket
This module provides OCaml ctypes bindings to system-specific low-level socket structure and data-types.
The interface is implemented using ocaml-ctypes and is intended to exposed the machine-specific, low-level details of the most important parts of socket implementations.
Sys_socket provides an API compatible for both Unix and Win32 systems, while Sys_socket_unix provides the API specific to Unix systems, mostly the sockaddr_u structure.
On POSIX systems, the following headers define the bound types and structures:
On windows systems, the following headers define the bound types and structures:
Its API mirrors as much as possible the original POSIX definitions, including integers representation (network bytes order, host byte order). It is defined in sys_socket.mli
A high-level wrapper for the OCaml Unix module is provided as well.
Happy hacking!
Dependencies (5)
- sys-socket
- unix-errno
- ctypes
-
dune
>= "1.10" - ocaml
Dev Dependencies
None
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building sys-socket-unix with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 1.0.0 (this version) | good | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure