On 18-11-2022 17:54, Matt Wette wrote:
cm-buf is a bytevector of control messages (`man cmsg`).  To deal
with control messages I have generated these procedures:

   (cmsg-list->bytevector cmsg-list) => bytevector
   (bytevector->cmsg-list bytevector) => cmsg-list

I have previously written an implementation for encoding/decoding cmsg at <https://git.gnunet.org/gnunet-scheme.git/tree/gnu/gnunet/util/cmsg.scm>, with a bunch of tests at <https://git.gnunet.org/gnunet-scheme.git/tree/tests/cmsg.scm> (no bindings for sendmsg, recvmsg!, though).

To compare, could you share your implementation of cmsg-list->bytevector and bytevector->cmsg-list?.

Greetings,
Maxime.

Attachment: OpenPGP_0x49E3EE22191725EE.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to