> Thanks for the pointer Aaron!
> 
> Can you point out where in the sockets code you pass or return a struct 
> value (and not a pointer to a struct)? I looked through the code but 
> perhaps I missed it.
 
I'm not sure that I do this literally, but there are places where I
return bytevectors or buffers, the concept is the same. Create
extractors for the data from the bytevectors, using ffi-bind as
appropriate. The basic idea is that you have a block of bytes that
needs to be converted, so do the conversion in Scheme once the struct
is returned.
 
    Aaron W. Hsu

_______________________________________________
r6rs-discuss mailing list
r6rs-discuss@lists.r6rs.org
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss

Reply via email to