Logo Search packages:      
Sourcecode: icecast2 version File versions

test_resolver.c

#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;
}


Generated by  Doxygen 1.6.0   Back to index