Skip to content
This repository was archived by the owner on Jun 13, 2020. It is now read-only.

toots/ocaml-sys-socket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sys-socket

This package is DEPRECATED! See: savonet/ocaml-posix for the most recent work on this API.

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!

About

[DEPRECATED] OCaml ctypes bindings to system-specific low-level socket structure and data-types.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors