Go Back   FlashFXP Forums > Community Chatter > Programming

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

Closed Thread
 
Thread Tools Rate Thread
Old 05-14-2004, 05:45 PM   #1
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
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,364
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
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 2,022
Default

http://www.ioftpd.com/kb/view.php?kbid=67
Mouton is offline  
Old 05-14-2004, 06:18 PM   #4
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
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
Create a free account to browse our forums without ads



Thread Tools
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


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


All times are GMT -5. The time now is 12:36 PM.