mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-11-03 04:17:20 -05:00
a8824b7f95
svn path=/trunk/avl/; revision=1997
35 lines
492 B
C
35 lines
492 B
C
/*
|
|
** resolver.h
|
|
**
|
|
** name resolver library header
|
|
**
|
|
*/
|
|
|
|
#ifndef __RESOLVER_H
|
|
#define __RESOLVER_H
|
|
|
|
|
|
/*
|
|
** resolver_lookup
|
|
**
|
|
** resolves a hosts name from it's ip address
|
|
** or
|
|
** resolves an ip address from it's host name
|
|
**
|
|
** returns a pointer to buff, or NULL if an error occured
|
|
**
|
|
*/
|
|
|
|
void resolver_initialize(void);
|
|
void resolver_shutdown(void);
|
|
|
|
char *resolver_getname(const char *ip, char *buff, int len);
|
|
char *resolver_getip(const char *name, char *buff, int len);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|