tres

Artifact [2dc6cca09c]
Login

Artifact [2dc6cca09c]

Artifact 2dc6cca09c3eceaf089145850dca59ae2321ece9:

Wiki page [tres] by aspect 2015-03-10 05:00:05.
D 2015-03-10T05:00:05.554
L tres
U aspect
W 936
<tt>tres</tt> is a featherweight threaded resolver for POSIX.  It currently consists of a single stand-alone test program that takes hosts to resolve on the command line and on stdin, echoing the results back on stdout.

It has been tested on Linux+gcc and FreeBSD+clang, and I'm fairly confident it should work in other POSIX environments.  Unfortunately, the test harness isn't terribly scriptable without either a <tt>ares_wait()</tt> method or more smarts in the test program.  The latter is more appealing, as the former requires much more smarts in my dumb dispatcher and will push past the 500loc and almost braindead ignorance of most of the pthread API.

The goal is eventually to adapt this to <tt>Tcl_Thread</tt> such that it can be applied to the Tcl core and make asynchronous sockets truly asynchronous.  There are a few bridges to cross first, and this isn't a high-priority project for me, so don't hold your breath.
Z e8b9cc9b3a3a20068f16e15b5919003b