libfuncs is collection of code (list, queue, circular buffer, io, logging, etc.). https://georgi.unixsol.org/programs/libfuncs/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

asyncdns.h 443B

12345678910111213141516171819202122
  1. /*
  2. * Async DNS resolver
  3. * Copyright (C) 2009-2010 Unix Solutions Ltd.
  4. *
  5. * Released under MIT license.
  6. * See LICENSE-MIT.txt for license terms.
  7. */
  8. #ifndef ASYNCDNS_H
  9. # define ASYNCDNS_H
  10. #include <arpa/inet.h>
  11. #include <netinet/in.h>
  12. #include <sys/socket.h>
  13. // Returns
  14. // 0 on success
  15. // 1 on error
  16. // 2 on timeout
  17. int async_resolve_host(char *host, int port, struct sockaddr_in *sockaddr, int msec_timeout, int *active);
  18. #endif