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
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,326

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


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: 1,956

Mouton is offline  
Old 05-14-2004, 06:18 PM   #4
Junior Member
Join Date: May 2004
Posts: 3

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.

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

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

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 07:34 PM.

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