1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-11-03 04:17:20 -05:00
icecast-common/net/test_resolver.c

18 lines
402 B
C
Raw Normal View History

#include <stdio.h>
#include <stdlib.h>
2018-11-02 07:20:04 -04:00
#include <igloo/resolver.h>
int main()
{
char buff[1024];
igloo_resolver_initialize();
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");
return 0;
}