Re: [twsocket] FTPCli: RequestDone with ftpConnectAsync executed twice

2009-12-23 Thread Anton Sviridov
> Don't you just look at the RqType parameter in the event.

Yes, I do, and it is ftpConnectAsync in both cases.
Here's detailed event log:

Login OK!
FtpClient1RequestDone ConnectAsync ==> 1st time
< 220-Microsoft FTP Service
< 220 Hello, Welcome to the TrigNet ftp server
FtpClient1SessionConnected
> USER anonymous
< 331 Anonymous access allowed, send identity (e-mail name) as password.
> PASS gu...@unknown
< 230-Hi!
< 230 Anonymous user logged in.
> FEAT
< 211-FEAT
< SIZE
< MDTM
< 211 END
> SYST
< 215 Windows_NT
FtpClient1RequestDone ConnectAsync ==> 2nd time

-- 
Anton
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] How to install V6 both Delphi2007 and C++Builder2007 atthe same time?

2009-12-23 Thread Francois PIETTE

Why would you use ICS-V6 today ?
ICS-V7 is out for a long time and is extremely compatible with ICS-V6.
I strongly suggest your go directly to ICS-V7.

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

- Original Message - 
From: "Bruce Zhao" 

To: 
Sent: Thursday, December 24, 2009 4:14 AM
Subject: [twsocket] How to install V6 both Delphi2007 and C++Builder2007 
atthe same time?




Hi, all:

   I read the Readme6.txt, found "If you need both BCB and Delphi
personnalities ate the same time, then
use Delphi 2006 package (OverbyteIcsDel100.bpl) and change his options to
make it
a dual mode Delphi/CPP package.", I open Project options dialog, select 
the

"linker" page, at the "Linker output" option,
I choose the "Generate all C++ builder files", but it's not work, what 
shall

I do ?

   Thanks!

bruce zhao
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be 


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] How to install V6 both Delphi2007 and C++Builder2007 at the same time?

2009-12-23 Thread Bruce Zhao
Hi, all:

I read the Readme6.txt, found "If you need both BCB and Delphi
personnalities ate the same time, then
use Delphi 2006 package (OverbyteIcsDel100.bpl) and change his options to
make it
a dual mode Delphi/CPP package.", I open Project options dialog, select the
"linker" page, at the "Linker output" option,
I choose the "Generate all C++ builder files", but it's not work, what shall
I do ?

Thanks!

bruce zhao
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Use of twsocket in thttpserver application

2009-12-23 Thread Francois PIETTE

Hi Chris,


Thanks for all the help with my Twsocket problem.  You will be pleased to
know that I have deployed the solution and everything works perfectly.


Thank you for your positive feedback.
I'm always happy to receive messages saying everything is OK :-)



Have a great Christmas and a Happy New Year


Merry Christmas and Happy New Year to you and your family.
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTPCli: RequestDone with ftpConnectAsync executed twice

2009-12-23 Thread Graham Powell
Don't you just look at the RqType parameter in the event.

Graham

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Anton Sviridov
Sent: 23 December 2009 14:45
To: twsocket@elists.org
Subject: [twsocket] FTPCli: RequestDone with ftpConnectAsync executed twice

Hello!
I've found that when connecting RequestDone is executed twice with
FRequestType = ftpConnectAsync.
I use the following command to login:

HighLevelAsync(ftpConnectAsync, [ftpFctOpen, ftpFctAuth, ftpFctUser,
ftpFctPass, ftpFctAcct, ftpFctSyst, ftpFctFeat]);

and RequestDone is called 1st time when connection to server is established,
and 2nd time when all requests up to FEAT are sent and answered.
My question: is there a way to distinguish these two cases from within
WMFtpRequestDone?

--
Anton
--
To unsubscribe or change your settings for TWSocket mailing list please goto
http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] FTPCli: RequestDone with ftpConnectAsync executed twice

2009-12-23 Thread Anton Sviridov
Hello!
I've found that when connecting RequestDone is executed twice with FRequestType 
= ftpConnectAsync.
I use the following command to login:

HighLevelAsync(ftpConnectAsync, [ftpFctOpen, ftpFctAuth, ftpFctUser, 
ftpFctPass, ftpFctAcct, ftpFctSyst, ftpFctFeat]);

and RequestDone is called 1st time when connection to server is established, 
and 2nd time when all requests up to FEAT are sent and answered.
My question: is there a way to distinguish these two cases from within 
WMFtpRequestDone?

-- 
Anton
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] About Asian sites downloaded with THttpCli

2009-12-23 Thread Fastream Technologies
Hello,

Please have a look at the screenshot taken from google.hk with ICS-based
content/forward web proxy:
http://www.fastream.com/ics/proxy.jpg . This does not happen within our LAN
but on customer site in Hong Kong. I told him to check his firewall but he
says his IE/FF works fine without the proxy on the same computer!

Any idea?!

Best Regards,

SZ
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Use of twsocket in thttpserver application

2009-12-23 Thread Chris Schofield
Hi everyone

Thanks for all the help with my Twsocket problem.  You will be pleased to
know that I have deployed the solution and everything works perfectly.

Have a great Christmas and a Happy New Year

Regards
Chris

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Francois PIETTE
Sent: 08 December 2009 17:03
To: ICS support mailing
Subject: Re: [twsocket] Use of twsocket in thttpserver application

Looks like you started to grasp async programming. Very good !
Don't forget you have to free the TWSocket at some time.
I think you still need a single TTimer to handle timeout. Think about what 
will happend if you start a connection successfully and then have a server 
not answering at all, but letting the connection opened. I guess you want to

break the connection to that server after some timeout.

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be


- Original Message - 
From: "Chris Schofield" 
To: "'ICS support mailing'" 
Sent: Tuesday, December 08, 2009 1:35 PM
Subject: Re: [twsocket] Use of twsocket in thttpserver application


> Hi Angus (and all who have helped)
>
> I have created an array of (50) Twsockets.  I then choose a new one each
> time I need to connect as you suggested.
>
> It works perfectly. I don't need the timer anymore and have removed the
> application.processmessages.
>
> Everything seems perfect.  I need to give it a good testing now.
>
> Many thanks
>
> Chris
>
> -Original Message-
> From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
> Behalf Of Angus Robertson - Magenta Systems Ltd
> Sent: 08 December 2009 09:31
> To: twsocket@elists.org
> Subject: Re: [twsocket] Use of twsocket in thttpserver application
>
>> I am using application.processmessages because I need to connect to
>> several different sockets as follows
>
> Just create a dynamic array with one TWSocket for each connection, then
> start them all together.
>
> Application.ProcessMessages can be used in ICS client applications using
> the sync methods, but must never be used in ICS server applications which
> are purely async.
>
>> The connected event closes the connection.  My timer aborts the
>> connection if it takes too long.
>
> You only need a single timer that checks if the connections have
> completed, again an array of tickcounts when they started.  Not really
> necessary to abort them, since a connection should always time out
> eventually.  The ICS FTP server code does this to close idle clients.
>
> Angus
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be 

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be