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 367B

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