chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] more 'foreign' questions


From: Kon Lovett
Subject: Re: [Chicken-users] more 'foreign' questions
Date: Wed, 27 Mar 2019 12:22:09 -0700



On Mar 27, 2019, at 12:14 PM, Christoph Lange <address@hidden> wrote:

i haven’t used the bind egg  but the documentation "General Operation” section beginining with "Structure and union definitions …” seems relevant.

Haha, yes, thanks. Finding the relevant parts of the docs seems to be the challenge in the beginning. Will read that.

it rolls access routines, ex: mosquitto_message-mid, mosquitto_message-payload, ...


#;1> (import bind)
#;2> ,x* (bind* "struct mosquitto_message{
          int mid;
          char *topic;
          void *payload;
          int payloadlen;
          int qos;
          ___bool retain;
        };”)

Oh, useful tool to learn, as it seems.

the expand-full egg (only for macro debugging really)


Thanks for the help. ... one follow-up question:

I now get a void pointer to some data in memory, and the length of the payload. How can I make that e.g. a blob? Or a string?

we’re trying to stop using string for non-char data so blob please ;-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]