Actually, I found those functions in the NaviServer CVS and imported them to AOLServer, but I still can't get the module to work. It hangs indefinitely on any call... I'll keep working on it though.
Right, i forgot, Naviserver's socket functions may differ in behavior from Aolserver's ones. You may copy them all from CVS sock.c into the module and see if it will work. Then decide what can be kept and what reused.