Raised This Month: $7 Target: $400
 1% 

NETDB - some functions from POSIX netdb.h


Post New Thread Reply   
 
Thread Tools Display Modes
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, 4401 views)

Last edited by ahtoh; 04-10-2007 at 11:15. Reason: Version 1.1 windows library compiled
ahtoh is offline
ahtoh
Member
Join Date: Jun 2006
Old 03-09-2007 , 14:56   Re: NETDB - some functions from POSIX netdb.h
Reply With Quote #2

could anyone compile this for windows?
ahtoh is offline
Old 03-09-2007, 16:21
commonbullet
This message has been deleted by commonbullet. Reason: old build - removed to clean thread and avoid confusion
ahtoh
Member
Join Date: Jun 2006
Old 04-05-2007 , 12:05   Re: NETDB - some functions from POSIX netdb.h
Reply With Quote #3

Could anybody help me with my module
I've written a new version, with threading support, but it wont work:

I got these messages:

Code:
L 04/05/2007 - 20:01:40: [AMXX] Plugin "show_ip.amxx" failed to load: Module/Library "netdb" required for plugin.  Check modules.ini.
And here is amx_modules output: space line is my module

Code:
amx_modules
Currently loaded modules:
name                    version  author

Fun                     1.76     AMX Mod X Dev Team
CStrike                 1.76     AMX Mod X Dev Team
CSX                     1.76c    AMX Mod X Dev Team
Engine                  1.76     AMX Mod X Dev Team
5 modules
source code attached
Attached Files
File Type: rar netdb.rar (85.8 KB, 660 views)

Last edited by ahtoh; 04-05-2007 at 12:13.
ahtoh is offline
BAILOPAN
Join Date: Jan 2004
Old 04-06-2007 , 12:52   Re: NETDB - some functions from POSIX netdb.h
Reply With Quote #4

Is your SDK mismatching? I.e., are you using the 1.76d SDK with 1.76?
__________________
egg
BAILOPAN is offline
ahtoh
Member
Join Date: Jun 2006
Old 04-06-2007 , 15:24   Re: NETDB - some functions from POSIX netdb.h
Reply With Quote #5

I dont know... where can i get latest amx sdk?
I'm not sure I have right versions of hlsdk and metamod also, which I use to compile my module, so, it would be pleasant if u give me all the links I need.
ahtoh is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 04-06-2007 , 21:14   Re: NETDB - some functions from POSIX netdb.h
Reply With Quote #6

sdk: http://svn.alliedmods.net/viewvc.cgi.../?root=amxmodx
hlsdk: http://svn.alliedmods.net/viewvc.cgi.../?root=amxmodx

metamod: http://www.metamod.org
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
ahtoh
Member
Join Date: Jun 2006
Old 04-07-2007 , 04:42   Re: NETDB - some functions from POSIX netdb.h
Reply With Quote #7

Yeah, it's started working

I need somebody to compile it for windows, please

Last edited by ahtoh; 04-07-2007 at 05:24.
ahtoh is offline
Old 04-08-2007, 22:11
commonbullet
This message has been deleted by commonbullet. Reason: old build - removed to clean thread and avoid confusion
ahtoh
Member
Join Date: Jun 2006
Old 04-10-2007 , 03:33   Re: NETDB - some functions from POSIX netdb.h
Reply With Quote #8

Yeah, I got the same error,
May be anyone who got MSVC compiler installed try to compile this?
Settings for project are the same as for mysqlx module I suppose...
ahtoh is offline
ahtoh
Member
Join Date: Jun 2006
Old 04-10-2007 , 08:06   Re: NETDB - some functions from POSIX netdb.h
Reply With Quote #9

btw, i noticed this:
amx_modules shows all ok, but "meta list" command shows not:
Code:
meta list
Currently loaded plugins:
      description      stat pend  file              vers      src  load  unlod
 [ 1] Booster          RUN   -    booster_686_mm.d  v2.40     ini  Chlvl Pause
 [ 2] AMX Mod X        RUN   -    amxmodx_mm.dll    v1.76d    ini  ANY   ANY
 [ 3] <netdb_amxx.dll  badf load  netdb_amxx.dll    v -       pl2   -     -
 [ 4] Fun              RUN   -    fun_amxx.dll      v1.76     pl2  ANY   ANY
 [ 5] CStrike          RUN   -    cstrike_amxx.dll  v1.76     pl2  ANY   ANY
 [ 6] CSX              RUN   -    csx_amxx.dll      v1.76c    pl2  ANY   ANY
6 plugins, 5 running
ahtoh is offline
ahtoh
Member
Join Date: Jun 2006
Old 04-10-2007 , 11:17   Re: NETDB - some functions from POSIX netdb.h
Reply With Quote #10

Thanks2ALL, I've compiled this for windows by my own.
Get it and enjoy =)
ahtoh is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode