Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] reading bytes into c-defined structs
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-08-28 (23:00)
From: henri dubois-ferriere <henridf@g...>
Subject: [Caml-list] reading bytes into c-defined structs
I have a little ocaml app which needs to read/write packets from a
serial device.

The different packet types are originally defined as c structs and i
would like to  be able to read the incoming bytes and convert them
into ocaml records with as much automation as possible.

Is there any way to automate this process? CamlIDL will automate the
process of translating the c structs into ml, which is a first step,
but are there any tools which would allow me to then populate the ml
record from an incoming set of bytes?

Any tips/pointers appreciated!


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: