Article View: borland.public.cppbuilder.nativeapi
Article #11092Re: InternetConnect failed in "working offline" mode
From: Remy Lebeau (TeamB)
Date: Thu, 26 Feb 2004 19:22
Date: Thu, 26 Feb 2004 19:22
27 lines
2039 bytes
2039 bytes
"ScOe" <cbinders@hotmail.com> wrote in message news:403e2ed8@newsgroups.borland.com... > Why ... is InternetConnect checks online mode for connection ? Because that is the way it is designed to work. WinInet is used for "online" operations. > How do i change that behavior ? Have a look at InternetSetOption() with the INTERNET_OPTION_IGNORE_OFFLINE flag. Alternatively, you could try calling InternetGoOnline() to programmably go back to "onine" mode if you are currently in "offline" mode. > I have LAN which have ftp server and i wanted to connect to that ftp server. If the above fails, then I would suggest you use WinSock directly instead of WinInet, and handle the connections yourself. Or use a pre-made TCP component for it. Either way, WinSock doesn't care whether you are requesting a network resource or an internet resource, just so long as it has an IP address to work with. Gambit
Technical Details
Message-ID:
<403e456f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!transit.news.xs4all.nl!newsgate.cistron.nl!news.cambrium.nl!news.cambrium.nl!newsfeed.kabelfoon.nl!195.129.110.21.MISMATCH!bnewsfeed00.bru.ops.eu.uu.net!bnewsinpeer00.bru.ops.eu.uu.net!emea.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<403e2ed8@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,73ff62a833a0345a X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-26 11:28:42 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <403e2ed8@newsgroups.borland.com> Subject: Re: InternetConnect failed in "working offline" mode Date: Thu, 26 Feb 2004 11:22:06 -0800 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <403e456f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077822831 67.22.138.253 (26 Feb 2004 11:13:51 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!transit.news.xs4all.nl!newsgate.cistron.nl!news.cambrium.nl!news.cambrium.nl!newsfeed.kabelfoon.nl!195.129.110.21.MISMATCH!bnewsfeed00.bru.ops.eu.uu.net!bnewsinpeer00.bru.ops.eu.uu.net!emea.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail