Hi Lawrence,
If p is a cdata object of type 'struct foo *', then you can cast it to
a 'char *' (like you would do in C). But even better is
'ffi.buffer(p)', which returns a Python buffer. You can pass it
directly to socket.send() for example, or use 'ffi.buffer(p)[:]' to
get the data as a raw string.
A bientôt,
Armin.