<div dir="ltr"><div>You might be interested in the gerbil socket library a spin; there is support for UNIX domain sockets through raw devices</div><div><br></div><div>-- vyzo<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 10, 2020 at 9:06 PM Jörg F. Wittenberger <<a href="mailto:Joerg.Wittenberger@softeyes.net">Joerg.Wittenberger@softeyes.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Alejandro & Marc,<br>
<br>
this is exactly the use case I had when I asked the list and likely<br>
Alejandro referred to Marcs answer to my question.<br>
<br>
So I'm afraid this is really something we need [Q]:<br>
<br>
    How would I turn a file descriptor, as exported from some library<br>
    and ready/intented to be used with poll(2)/select(2) into a port?<br>
<br>
Thanks sooo much.<br>
<br>
/Jörg<br>
<br>
Background:<br>
<br>
Since when I'm using this ##open-predefined and have on my list to ask<br>
why this seems not to integrate into gambit's threading as good as I<br>
had hoped for.<br>
<br>
Nevertheless Marcs suggestion to use open-tcp-server does not work for<br>
me.  I really need a unix domain socket.  Actually an abstract socket<br>
on Linux.  No way around.  :-/<br>
<br>
But I'd like it to block the calling thread on input.  Which did not<br>
work out for me.  (There is lambdanative and Android in the mix too, but<br>
my current _guess_ is that neither is to blame here.)<br>
<br>
Which leaves me with the question above.<br>
<br>
On Sat, 4 Apr 2020 22:59:42 -0700 (PDT)<br>
Alejandro Santana <<a href="mailto:santana@mailbox.org" target="_blank">santana@mailbox.org</a>> wrote:<br>
<br>
> Thanks for the explanation.<br>
> <br>
> > BTW, why do you need this?  <br>
> Just learning scheme and c. I wanted to have gambit receive s-exps<br>
> over a unix domain socket. I figured it would be simplest if I could<br>
> turn the file descriptor returned from accept into a port and call<br>
> scheme's read on it. I can do without this though and I'd rather not<br>
> have ports piling up.<br>
> <br>
> I'm curious though if there's a better way to turn a file descriptor<br>
> into a port. ##open-predefined is what I saw mentioned when I<br>
> searched the mailing list.<br>
<br>
_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca" target="_blank">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://mailman.iro.umontreal.ca/cgi-bin/mailman/listinfo/gambit-list" rel="noreferrer" target="_blank">https://mailman.iro.umontreal.ca/cgi-bin/mailman/listinfo/gambit-list</a><br>
</blockquote></div>