Login
or
Create an account
Search:
HOME
DOWNLOAD
PURCHASE
SUPPORT
PORTAL
FORUM
CONTACT US
News & Information
Suggestions & Feedback
General Discussions
FlashFXP Forums
>
Community Chatter
>
Programming
winsock in a c++ script
User Name
Remember Me?
Password
Register
Tickets
Search
Today's Posts
Mark Forums Read
Programming
Need help with C/C++/Delphi? Ask here and make us all laugh.
Thread Tools
Rate Thread
05-14-2004, 05:45 PM
#
1
snorkis
Junior Member
Join Date: May 2004
Posts: 3
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.
05-14-2004, 05:49 PM
#
2
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
Join Date: May 2003
Posts: 1,364
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.
05-14-2004, 05:49 PM
#
3
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
Join Date: Dec 2002
Posts: 2,022
http://www.ioftpd.com/kb/view.php?kbid=67
05-14-2004, 06:18 PM
#
4
snorkis
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.
Thanks
05-15-2004, 10:25 AM
#
5
snorkis
Junior Member
Join Date: May 2004
Posts: 3
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.
Create a free account to browse our forums without ads
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Rate This Thread
Rate This Thread
:
5 : Excellent
4 : Good
3 : Average
2 : Bad
1 : Terrible
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
Forum Rules
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
.
-- FlashFXP Default
---- FlashFXP Dynamic Width
-- Mobile
Archive
-
Privacy Statement
-
Top
Copyright © 1999-2012 OpenSight Software, LLC. All Rights Reserved.
Powered by vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Promote FlashFXP on your website and get paid for it!