<div dir="ltr"><div>Is it possible to use scheme_call_enable_break [1] with a non-primitive Racket procedure?<br><br>In particular, I'd like to use it with shawnpresser's unix domain socket package [2] and its `accept' function, but I'm not sure how to make one work with the other.<br>
</div><div><br></div><div>I cannot really use the example of tcp-connect/enable-break since these are both Racket's C code and not FFI code.<br><br></div><div>My current stab at it is:<br> (_fun _pointer _int (_list i _scheme) -> _scheme)<br>
<br></div><div>but instead of _pointer I'd need something like a racket primitive C type.<br></div><div><br></div><div>Thanks,<br></div><div>Laurent<br></div><div><br>[1] <a href="http://docs.racket-lang.org/inside/threads.html#%28cpp._scheme_call_enable_break%29">http://docs.racket-lang.org/inside/threads.html#%28cpp._scheme_call_enable_break%29</a><br>
[2] <a href="http://planet.racket-lang.org/display.ss?package=racket-unix-sockets.plt&owner=shawnpresser">http://planet.racket-lang.org/display.ss?package=racket-unix-sockets.plt&owner=shawnpresser</a><br></div>(probably derived from Ryan's db collection), with a usage example here:<br>
<a href="https://gist.github.com/Metaxal/5426707">https://gist.github.com/Metaxal/5426707</a><br></div>