View Single Post
Author Message
ahtoh
Member
Join Date: Jun 2006
Old 03-08-2007 , 09:46   NETDB - some functions from POSIX netdb.h
Reply With Quote #1

It's just two functions yet.
And.. i havent compiler for windows... so, its only .so file included, no .dll

// netdb_gethostbyaddr - Get the Internet host name corresponding to a given IP address
native netdb_gethostbyaddr(const ip[], host[], len);

// netdb_gethostbyname - Get the IP address corresponding to a given Internet host name
native netdb_gethostbyname(const host[], ip[], len);

NEW: threading supported function added:

// thr_gethostbyaddr - Get the Internet host name corresponding to a given IP address
//public handler(threadId)
native thr_gethostbyaddr(const handler[], const ip[], host[], len, threadId=0);
Attached Files
File Type: rar netdb.rar (116.2 KB, 4410 views)

Last edited by ahtoh; 04-10-2007 at 11:15. Reason: Version 1.1 windows library compiled
ahtoh is offline