# \#networking

**URL:** https://discuss.ocaml.org/tag/networking/382.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [Hardcaml Networking Library - FPGA Project](https://discuss.ocaml.org/t/hardcaml-networking-library-fpga-project/18488)

<div class="topic-metadata">

**Author:** [@LeEmperor](https://discuss.ocaml.org/u/LeEmperor)\
**Replies:** 0\
**Last updated:** [August 31, 2026, 12:26am UTC](https://discuss.ocaml.org/t/hardcaml-networking-library-fpga-project/18488 "2026-08-31T00:26:24Z")

</div>

General Kenobi Greetings. My name is Bo Purtell, and I’m an aspiring senior at the University of Florida. Wanted to share a little project I’ve been working on over the course of the last year being a small networking …

---

## [Waiting in Eio for socket data without reading it](https://discuss.ocaml.org/t/waiting-in-eio-for-socket-data-without-reading-it/17615)

<div class="topic-metadata">

**Author:** [@vog](https://discuss.ocaml.org/u/vog)\
**Replies:** 1\
**Last updated:** [December 20, 2025, 2:35pm UTC](https://discuss.ocaml.org/t/waiting-in-eio-for-socket-data-without-reading-it/17615 "2025-12-20T14:35:11Z")

</div>

I’d like to wrap a C library for use within Eio code. That library opens a network connection on its own, but I’m able to fetch the file descriptor of the open socket. It even operates in non-blocking mode. But how do I…

---

## [Eio Unix.EADDRNOTAVAIL on socket bind!?](https://discuss.ocaml.org/t/eio-unix-eaddrnotavail-on-socket-bind/15809)

<div class="topic-metadata">

**Author:** [@H-ANSEN](https://discuss.ocaml.org/u/H-ANSEN)\
**Replies:** 11\
**Last updated:** [December 18, 2024, 7:24pm UTC](https://discuss.ocaml.org/t/eio-unix-eaddrnotavail-on-socket-bind/15809 "2024-12-18T19:24:08Z")

</div>

Hello all! I was having some issues when making use of the Eio library, specifically when attempting to create a UDP socket and sending data. As a proof of concept, I went ahead and wrote out the Unix code by hand to try…

---

## [Bounds checks for String and Bytes when retrieving (or setting) subparts thereof](https://discuss.ocaml.org/t/bounds-checks-for-string-and-bytes-when-retrieving-or-setting-subparts-thereof/14422)

<div class="topic-metadata">

**Author:** [@hannes](https://discuss.ocaml.org/u/hannes)\
**Replies:** 8\
**Last updated:** [April 12, 2024, 2:37pm UTC](https://discuss.ocaml.org/t/bounds-checks-for-string-and-bytes-when-retrieving-or-setting-subparts-thereof/14422 "2024-04-12T14:37:23Z")

</div>

Dear all, I sometimes have binary data that I need to decode. Code is normally roughly: let guard p e = if p then Ok () else Error e let ( let\* ) = Result.bind let decode\_header str = let\* () = guard (String.length…

---

## [Dns and hosts file](https://discuss.ocaml.org/t/dns-and-hosts-file/10649)

<div class="topic-metadata">

**Author:** [@orbitz](https://discuss.ocaml.org/u/orbitz)\
**Replies:** 4\
**Last updated:** [October 17, 2022, 7:46am UTC](https://discuss.ocaml.org/t/dns-and-hosts-file/10649 "2022-10-17T07:46:19Z")

</div>

We have the Dns module which is great, but just implements the network layer. Is there a suggested solution for how to implement full DNS lookups that use the hosts file?

---

## [Using AF\_XDP sockets for high-performance packet processing in OCaml](https://discuss.ocaml.org/t/using-af-xdp-sockets-for-high-performance-packet-processing-in-ocaml/6106)

<div class="topic-metadata">

**Author:** [@suttonshire](https://discuss.ocaml.org/u/suttonshire)\
**Replies:** 16\
**Last updated:** [February 1, 2021, 12:16pm UTC](https://discuss.ocaml.org/t/using-af-xdp-sockets-for-high-performance-packet-processing-in-ocaml/6106 "2021-02-01T12:16:35Z")

</div>

Howdy, I just wanted to share a fun result from a project I’ve been hacking on. ocaml-xsk is a binding to AF\_XDP interface of libbpf. AF\_XDP is an address family in Linux for high-performance packet processing. With a…
