[usocket-devel] Questions about exported symbols...
Patrick Stein
pat at nklein.com
Thu Apr 4 19:20:04 UTC 2013
I keep hoping that #'GET-HOST-BY-NAME will be exported from USocket. In poking around trying to see how hard that would be, it looks to me like the only backend that doesn't currently support it is ECL. And, that backend only supports ECL under Windows as it is.
If I spend some time getting GET-HOSTS-BY-NAME working for ECL on Windows (and other systems), can we make GET-HOSTS-BY-NAME a non-optional feature of the backends and export GET-HOST-BY-NAME and some of its friends?
Also, I just looked through WAIT-FOR-INPUT trying to see the most efficient way that I can employ that function. It looks like if I used MAKE-WAIT-LIST, ADD-WAITER, and REMOVE-WAITER in my code, then I could pass the wait-list into WAIT-FOR-INPUT so it doesn't have to construct one itself. That'd be nice. All of those functions are exported, but WAIT-LIST-WAITERS is not. So, I would still need to either maintain a separate copy of the WAITERS for myself or use the :READY-ONLY option. Can we export WAIT-LIST-WAITERS?
On a similar note, even given the whole list of WAITERS, I still need to use the unexpected STATE function to get the waiting state of each socket. I'd propose adding a predicate that checks whether the state is :READ or :READ-WRITE. Or, we export STATE? Or some reader for that state? Or some predicate that returns true if the state is :READ?
I'll gladly work on the above and submit patches if there's consensus….
Thanks,
Patrick
More information about the usocket-devel
mailing list