Chris Vine <ch...@cvine.freeserve.co.uk> skribis: > Whilst this seems to be a side issue with respect to the OP's > problem, with R6RS you can use the 'put-u8' procedure to write > individual octets to a binary port (and 'get-u8' to read them) [1].
I concur, binary I/O primitives are what should be used for binary protocols like this (info "(guile) R6RS I/O Ports"). Ludo’.