<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&#39;d like to use it with shawnpresser&#39;s unix domain socket package [2] and its `accept&#39; function, but I&#39;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&#39;s C code and not FFI code.<br><br></div><div>My current stab at it is:<br>  (_fun _pointer _int (_list i _scheme) -&gt; _scheme)<br>

<br></div><div>but instead of _pointer I&#39;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&amp;owner=shawnpresser">http://planet.racket-lang.org/display.ss?package=racket-unix-sockets.plt&amp;owner=shawnpresser</a><br></div>(probably derived from Ryan&#39;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>