Re: Reading data from a file descriptor

2015-11-07 Thread Artyom Poptsov
Hello Jan, do you need to read the data from the file descriptor in a Scheme program? If so, I guess you can make a wrapper procedure [1] that uses 'scm_fdes_to_port' from 'libguile.h' to convert your file descriptor to a SCM port and return the port into the Scheme world. Here's the description

Re: Reading data from a file descriptor

2015-11-07 Thread Artyom Poptsov
Oh sorry, there was a mistake in my previous mail. 'scm_i_fdes_to_port' is an internal procedure, but 'scm_fdes_to_port' is defined as Guile API and should be available to Guile programs. Here's its definition: --8<---cut here---start->8--- SCM scm_fdes_to_por

Re: The “finalized” SMOB type

2016-10-09 Thread Artyom Poptsov
Hello Ludovic, thanks for pointing that out. IIRC, I saw this kind of errors during testing but I thought I fixed them. What Guile-SSH version do you use? Here's 'free_session' procedure from Guile-SSH version 0.10.0: --8<---cut here---start->8--- size_t fre

Re: The “finalized” SMOB type

2016-10-09 Thread Artyom Poptsov
Hello Ludovic and David, thanks for all the comments on the smob freeing callbacks. Apparently I misread the documentation so the bug was introduced. I've changed the callback procedures as was suggested; the patches included in Guile-SSH version 0.10.1 released a few moments ago. - Artyom --