diff options
Diffstat (limited to 'lib/libshout-idjc/src/common/net/test_resolver.c')
-rw-r--r-- | lib/libshout-idjc/src/common/net/test_resolver.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/libshout-idjc/src/common/net/test_resolver.c b/lib/libshout-idjc/src/common/net/test_resolver.c new file mode 100644 index 0000000000..cac1c8e23c --- /dev/null +++ b/lib/libshout-idjc/src/common/net/test_resolver.c @@ -0,0 +1,17 @@ +#include <stdio.h> +#include <stdlib.h> + +#include "resolver.h" + +int main() +{ + char buff[1024]; + + resolver_initialize(); + + printf("I got %s, when looking up %s.\n", resolver_getip("bach.greenwitch.com", buff, 1024), "bach.greenwitch.com"); + printf("I got %s, when looking up %s.\n", resolver_getname("207.181.249.14", buff, 1024), "207.181.249.14"); + + return 0; +} + |