Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 05-14-2004, 05:45 PM   #1
snorkis
Junior Member
 
Join Date: May 2004
Posts: 3
Default winsock in a c++ script

I'm trying to use gethostbyname in a c++ script for ioftpd but it always return 11001 host not found when run from ioftpd.

If I run it from a shell with the same parameters it gets from ioftpd,it resolvs the host.

any help would be appreciated.
snorkis is offline  
Old 05-14-2004, 05:49 PM   #2
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

Check to make sure you are not missing the following entries in the ioftpd.env:

SYSTEMROOT=%[environment(SYSTEMROOT)]
WINDIR=%[environment(WINDIR)]

You have to restart ioFTPD for changes to take effect.
neoxed is offline  
Old 05-14-2004, 05:49 PM   #3
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

http://www.ioftpd.com/kb/view.php?kbid=67
Mouton is offline  
Old 05-14-2004, 06:18 PM   #4
snorkis
Junior Member
 
Join Date: May 2004
Posts: 3
Default

thanks for the help guys but it didn't help.
the wsa gets initialized correctly according to the return value from WSAStartup.

The error reply comes the same nanosecond it executes gethostbyname. Winsock is not even trying to resolve the host from ioftpd

I'll have to call it for today. Been banging my head for too long now.

Thanks
snorkis is offline  
Old 05-15-2004, 10:25 AM   #5
snorkis
Junior Member
 
Join Date: May 2004
Posts: 3
Default

lol
I pasted the lines from the page and ofcourse there was a space after the systemroot line and ioftpd didn't like that.

Thanks 10x for the help
Back to work.
snorkis is offline  
Closed Thread

Tags
c++, host, ioftpd, run, script

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Download grinding to a halt bruceh General Discussion 6 09-07-2004 08:29 AM


All times are GMT -5. The time now is 05:22 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)