On Fri, 15 Sep 2000 16:48:07 +0200 (MET DST), you wrote:
> just a suggestion, to make things more readable
> - always use (in DLLs like winsock) the reentrant functions
> (get???by???_r)
Only gethostbyname_r and gethostbyaddr_r are known to me. Solaris
provides functions by the same names but with different arguments.
That only these two are re-entrant makes sense as they possibly cause
a DNS query, multithreaded queries may save time. The others are local
lookups in some /etc files.
> - implement those in misc/port.c when not provided by C lib (this can be
> done using get???by??? and a crit sect around)
Data returned is a hostent structure + the data that entries in this
structure. You would need to follow linked list to copy these,
possibly several times when the databuffer's size is insufficient. A
little bit to much work IMO especiallly if it is not needed.
> that would make the whole winsock more readable IMO
Yes, winsock is not pretty and my patch doen't help much :-(((
Some reorganization of sock.c and async.c, unifying lots of redundant
code in them, might help this a lot more.
Rein.
--
Rein Klazes
[EMAIL PROTECTED]