2001-09-09 22:24:39 -04:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2018-11-02 07:20:04 -04:00
|
|
|
#include <igloo/resolver.h>
|
2001-09-09 22:24:39 -04:00
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2003-03-14 21:10:19 -05:00
|
|
|
char buff[1024];
|
2001-09-09 22:24:39 -04:00
|
|
|
|
2018-10-12 06:55:24 -04:00
|
|
|
igloo_resolver_initialize();
|
2001-09-09 22:24:39 -04:00
|
|
|
|
2018-10-12 06:55:24 -04:00
|
|
|
printf("I got %s, when looking up %s.\n", igloo_resolver_getip("bach.greenwitch.com", buff, 1024), "bach.greenwitch.com");
|
|
|
|
printf("I got %s, when looking up %s.\n", igloo_resolver_getname("207.181.249.14", buff, 1024), "207.181.249.14");
|
2001-09-09 22:24:39 -04:00
|
|
|
|
2003-03-14 21:10:19 -05:00
|
|
|
return 0;
|
2001-09-09 22:24:39 -04:00
|
|
|
}
|
|
|
|
|