gethostbyname and getaddrinfo block. There is no way to stop them once they’ve started. (BTW, getaddrinfo is recommended over gethostbyname as it’s IPv6 compatible.) This little class will provide a neat way to get the info without blocking. Classes extra::Thread and extra::auto_HANDLE are thread and and auto handle closing classes respectivly (is that english?). When the [...]
Archive for the ‘Uncategorized’ Category
gethostbyname or getaddrinfo that doesn’t block
Posted in Uncategorized on July 24, 2007 | Leave a Comment »