alpha
Login
or
Join now
gazagnaire.org
/
ocaml-eio-net
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Eio network backends and test helpers
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
ocaml-eio-net
/
lib
/
addr
/
at
main
3 files
Thomas Gazagnaire
eio-net: report reset-class writev errors the Eio way
6d ago
25398613
dune
eio-net: cross between Ipaddr and Eio addresses in one place Eio names an IP address by its raw octets; Ipaddr names one by a parsed type. Twenty-odd sites open-code the crossing, and two of them get it wrong: Cfdp_eio.connect and Ltp_eio.connect hand a host *string* straight to Eio.Net.Ipaddr.of_raw, which raises Invalid_argument on anything that is not exactly 4 or 16 bytes -- so both raise on the very call their own docs show ("127.0.0.1" is 9 bytes, not 4). eio-net.addr is that crossing, both ways, with tests. It is a sub-library so the carrier libraries above it gain no ipaddr dependency, and so a unikernel guest that only needs to name an address links nothing else. Cfdp and Ltp now parse a literal address and resolve a name, which is what their ~host argument always claimed to take.
2 weeks ago
eio_addr.ml
eio-net: cross between Ipaddr and Eio addresses in one place Eio names an IP address by its raw octets; Ipaddr names one by a parsed type. Twenty-odd sites open-code the crossing, and two of them get it wrong: Cfdp_eio.connect and Ltp_eio.connect hand a host *string* straight to Eio.Net.Ipaddr.of_raw, which raises Invalid_argument on anything that is not exactly 4 or 16 bytes -- so both raise on the very call their own docs show ("127.0.0.1" is 9 bytes, not 4). eio-net.addr is that crossing, both ways, with tests. It is a sub-library so the carrier libraries above it gain no ipaddr dependency, and so a unikernel guest that only needs to name an address links nothing else. Cfdp and Ltp now parse a literal address and resolve a name, which is what their ~host argument always claimed to take.
2 weeks ago
eio_addr.mli
eio-net: cross between Ipaddr and Eio addresses in one place Eio names an IP address by its raw octets; Ipaddr names one by a parsed type. Twenty-odd sites open-code the crossing, and two of them get it wrong: Cfdp_eio.connect and Ltp_eio.connect hand a host *string* straight to Eio.Net.Ipaddr.of_raw, which raises Invalid_argument on anything that is not exactly 4 or 16 bytes -- so both raise on the very call their own docs show ("127.0.0.1" is 9 bytes, not 4). eio-net.addr is that crossing, both ways, with tests. It is a sub-library so the carrier libraries above it gain no ipaddr dependency, and so a unikernel guest that only needs to name an address links nothing else. Cfdp and Ltp now parse a literal address and resolve a name, which is what their ~host argument always claimed to take.
2 weeks ago