mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2025-10-21 20:04:01 -04:00
Initial revision
svn path=/trunk/avl/; revision=1997
This commit is contained in:
17
net/test_resolver.c
Normal file
17
net/test_resolver.c
Normal file
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user