<div dir="ltr"><div>You can't tell if a file descriptor is closed in general, that's not what I am after.<br>I just want to know if close-port was applied to the port.<br><br></div><div>-- vyzo<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 24, 2018 at 11:43 AM, Adam <span dir="ltr"><<a href="mailto:adam.mlmb@gmail.com" target="_blank">adam.mlmb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The BSD/unix API does not allow this for TCP sockets, as in tapping into the OS' knowledge of whether a connection was closed, the only way to learn that is by trying to write to it.<div><br></div><div>However with respect to Gambit knowing whether |close-port| was applied on a port, of course you should be able to retrieve that.</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2018-03-24 16:29 GMT+08:00 Dimitris Vyzovitis <span dir="ltr"><<a href="mailto:vyzo@hackzen.org" target="_blank">vyzo@hackzen.org</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div>Is there a reasonable way to detect whether a port has been closed?<br></div>I want to implement input-port-open? and output-port-open? for r7rs coverage...<br><br></div>-- vyzo<br></div>
<br></div></div>______________________________<wbr>_________________<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://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" rel="noreferrer" target="_blank">https://webmail.iro.umontreal.<wbr>ca/mailman/listinfo/gambit-lis<wbr>t</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>