00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef _QORE_QORENET_H
00027
00028 #define _QORE_QORENET_H
00029
00030 #include <sys/socket.h>
00031 #include <netinet/in.h>
00032 #include <arpa/inet.h>
00033
00035 DLLEXPORT int q_gethostbyname(const char *host, struct in_addr *sin_addr);
00036
00038 DLLEXPORT QoreHashNode *q_gethostbyname_to_hash(const char *host);
00039
00041 DLLEXPORT QoreStringNode *q_gethostbyname_to_string(const char *host);
00042
00044 DLLEXPORT char *q_gethostbyaddr(const char *addr, int len, int type);
00045
00047 DLLEXPORT QoreHashNode *q_gethostbyaddr_to_hash(ExceptionSink *xsink, const char *addr, int type = AF_INET);
00048
00050 DLLEXPORT QoreStringNode *q_gethostbyaddr_to_string(ExceptionSink *xsink, const char *addr, int type = AF_INET);
00051
00053 DLLEXPORT QoreStringNode *q_addr_to_string(int address_family, const char *addr);
00054
00055 #endif // _QORE_QORENET_H