Re: [twsocket] TWsocket and EStackOverflow

2012-10-25 Thread Matt Minnis
This is where things like Eureka Log come in very handy.
(or various other Exception Handlers)

Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of RTT
Sent: Thursday, October 25, 2012 12:14 PM
To: ICS support mailing
Subject: Re: [twsocket] TWsocket and EStackOverflow

On 22-10-2012 19:04, LeNif wrote:
 My problem is when I disconnect the socket and I immediately 
 reconnects, I get an error EStackOverflow

And if the reconnect is not immediately (you wait more time), the error
does not occur?
Have you checked the stack trace, in that stack overflow condition, to see
what code is being called, most probably recursively?
--
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


Re: [twsocket] FTP Error 426

2012-04-18 Thread Matt Minnis
Tried latest snapshot, no dice still :(
I was on the latest stable release which is significantly older, so I had
hopes that this might do it.
Ignoring the error and attempting to plow on doesn't work either.

Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: Wednesday, April 18, 2012 3:05 AM
To: ICS support mailing
Subject: Re: [twsocket] FTP Error 426

Matt Minnis wrote:
 I am getting a spurious error 426 (426 Operation aborted.) when I run 
 my program automated to upload files to a ftp site.  When I do the 
 exact same steps manually in same exe, it works fine. Error Listed 
 below from my own logs.

Please try to reproduce the issue with latest ICSv7 from here:
http://wiki.overbyte.be/wiki/index.php/ICS_Download

Any change?

-- 
Arno   

  

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


Re: [twsocket] FTP Error 426

2012-04-18 Thread Matt Minnis
Not intentionally.

Here is the ICS Logger output for 2 attempt cycles (log below).
Can see the Shutdown before the data sent.
Does this help at all?

Thanks,
Matt

10:42:33:450 01E8D474 Socket handle created 964
10:42:33:499 TWSocket will connect to 206.196.105.44:21
10:42:33:580 01E8D474 TriggerDataSent 964
10:42:33:634 01E8D474 TriggerDataSent 964
10:42:33:703 01E8D474 TriggerDataSent 964
10:42:33:848 01E8D474 TriggerDataSent 964
10:42:33:923 01E8D474 TriggerDataSent 964
10:42:34:118 01E8D474 TriggerDataSent 964
10:42:34:302 01E8D474 TriggerDataSent 964
10:42:34:492 01E8D474 TriggerDataSent 964
10:42:34:781 01E8D474 TriggerDataSent 964
10:42:34:852 01E8D474 TriggerDataSent 964
10:42:34:975 01E8DD60 Socket accepted 1056
10:42:34:988 01E8DD60 TCustomWSocket.Shutdown 1 1044
10:42:35:005 01E8DD60 TriggerDataSent 1056
10:42:35:047 01E8DD60 TCustomWSocket.Shutdown 1 1056
10:42:45:097 01E8D474 Socket handle created 20
10:42:45:111 TWSocket will connect to 206.196.105.44:21
10:42:45:176 01E8D474 TriggerDataSent 20
10:42:45:243 01E8D474 TriggerDataSent 20
10:42:45:310 01E8D474 TriggerDataSent 20
10:42:45:451 01E8D474 TriggerDataSent 20
10:42:45:532 01E8D474 TriggerDataSent 20
10:42:45:715 01E8D474 TriggerDataSent 20
10:42:45:889 01E8D474 TriggerDataSent 20
10:42:46:085 01E8D474 TriggerDataSent 20
10:42:46:302 01E8D474 TriggerDataSent 20
10:42:46:369 01E8D474 TriggerDataSent 20
10:42:46:490 01E8DD60 Socket accepted 1064
10:42:46:503 01E8DD60 TCustomWSocket.Shutdown 1 1052
10:42:46:517 01E8DD60 TriggerDataSent 1064
10:42:46:538 01E8DD60 TCustomWSocket.Shutdown 1 1064

Thanks,
Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: Wednesday, April 18, 2012 9:56 AM
To: ICS support mailing
Subject: Re: [twsocket] FTP Error 426

Matt Minnis wrote:

 16:05:56: FTP: FtpClient1ReadyToTransmit: 
 ftp Request PutAsync Done.
 ftp StatusCode = 150
 ftp LastResponse was : '150 Opening BINARY mode data connection for
4071Ascend4.09.7z'
  ftp Error = 426 (426 Operation aborted.)
 16:05:57: FTP Upload Process Canceled

You must be calling Abort while the component is still uploading.

-- 
Arno  


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


Re: [twsocket] FTP Error 426

2012-04-18 Thread Matt Minnis
Here is the ICS log segment that applies with those options:
12:04:33:532 ! HighLevelAsync 0
12:04:33:546 ! HighLevelAsync done
12:04:33:579 01EFD47C TriggerDataSent 972
12:04:33:640 |200 Type set to I|

12:04:33:669 01EFD47C TriggerDataSent 972
12:04:33:744 |250 CWD command successful|

12:04:33:930 01EFD47C TriggerDataSent 972
12:04:33:994 |257 / is the current directory|

12:04:34:127 01EFD47C TriggerDataSent 972
12:04:34:181 |213 20120418163737|

12:04:34:320 01EFD47C TriggerDataSent 972
12:04:34:381 |213 0|

12:04:34:567 ! HighLevelAsync 0
12:04:34:607 01EFD47C TriggerDataSent 972
12:04:34:654 |200 PORT command successful|

12:04:34:692 ! HighLevelAsync 0
12:04:34:733 01EFD47C TriggerDataSent 972
12:04:34:836 |150 Opening BINARY mode data connection for
4071Ascend4.09.7z|

12:04:34:856 ! Data Session requested
12:04:34:870 01EFDD68 Socket accepted 1052
12:04:34:887 01EFDD68 TCustomWSocket.Shutdown 1 1044
12:04:34:910 ! Data Session opened
12:04:34:943 01EFDD68 TriggerDataSent 1052
12:04:34:975 ! Aborting
12:04:35:003 ! HighLevelAsync 0
12:04:35:030 ! Abort detected
12:04:35:052 ! HighLevelAsync done
12:04:35:081 01EFDD68 TCustomWSocket.Shutdown 1 1052
12:04:35:108 ! Data Session closed
12:04:35:125 ! Next3PutAsync
12:04:35:148 ! Aborting

Thanks,
Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: Wednesday, April 18, 2012 11:50 AM
To: ICS support mailing
Subject: Re: [twsocket] FTP Error 426

Matt Minnis wrote:
 Not intentionally.
 
 Here is the ICS Logger output for 2 attempt cycles (log below).
 Can see the Shutdown before the data sent.
 Does this help at all?

No it doesn't since the log options do not include the loProtSpecxxx type of
options, try something like:
[loDestOutDebug,loAddStamp,loWsockErr,loWsockInfo,loWsockDump,loProtSpecErr,
loProtSpecInfo,loProtSpecDump]

--
Arno


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


Re: [twsocket] FTP Error 426

2012-04-18 Thread Matt Minnis
Ok, let me try some different ones and see what happens.

I know ICS is very stable, I have used it several times over the years,
that's pretty much why I am using it.

Thanks,
Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Angus Robertson - Magenta Systems Ltd
Sent: Wednesday, April 18, 2012 11:50 AM
To: twsocket@elists.org
Subject: Re: [twsocket] FTP Error 426

 Here is the ICS Logger output for 2 attempt cycles (log below).
 Can see the Shutdown before the data sent.
 Does this help at all?

Sorry, no.  The ICS FTP component is very stable and widely used.  Any
issues with it are likely to be your implementation, or circumstances
unconnected with your application.  The FTP server may have closed the
connection, or a firewall or NAT router somewhere may be unhappy.   

Is this problem reproducible against different FTP servers in different
locations.  I have a public ICS FTP server you can test against, anonymous
download access at ics.ftptest.org you will need to request an account if
you need to upload.  The same host has other FTP servers for testing
against. 

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


Re: [twsocket] FTP Error 426

2012-04-18 Thread Matt Minnis
Call stack:
TCustomFtpCli.AbortAsync
TCustomFtpCli.Progress
TFtpClient.Progress
TCustomFtpCli.DataSocketPutDataSent(???,0)
TCustomWSocket.TriggerDataSent(0)
TCustomWSocket.Do_FD_WRITE(???)
TCustomWSocket.WMASyncSelect((1038, 1072, 2, 36, 1072, 0, 2, 0, 36, 0))
TCustomWSocket.WndProc(???)
TCustomHttpTunnelWSocket.WndProc(???)
TCustomLineWSocket.WndProc(???)
TIcsWndHandler.WndProc((1038, 1072, 2, 36, 1072, 0, 2, 0, 36, 0))
WndControlWindowsProc(???,???,1072,2)
TCustomFtpCli.Progress
TFtpClient.Progress
TCustomFtpCli.DataSocketPutDataSent(???,0)
TCustomFtpCli.WMFtpSendData(???)
TCustomFtpCli.WndProc(???)
TIcsWndHandler.WndProc((1027, 0, 0, 1, 0, 0, 0, 0, 1, 0))
WndControlWindowsProc(???,???,0,0)
TFtpClient.WaitUntilReady
TFtpClient.Synchronize($C1CF8C)
TFtpClient.Put
FTPTransfer('d:\Database\4071Ascend4.09.7z')
TUploadFrm.InitiateFTP2Click(???)
TUploadFrm.tmMasterTimer(???)
DBUpload

Thanks,
Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: Wednesday, April 18, 2012 1:02 PM
To: ICS support mailing
Subject: Re: [twsocket] FTP Error 426

Matt Minnis wrote:
 Here is the ICS log segment that applies with those options:

OK, open your project and then OverbyteIcsFtpCli.pas in the editor.
Add a breakpoint in:

procedure TCustomFtpCli.AbortAsync;
{var
bFlag : Boolean; } { 2.106 }
begin
{$IFNDEF NO_DEBUG_LOG} { 2.105 }
if CheckLogOptions(loProtSpecInfo) then // =*** here 
DebugLog(loProtSpecInfo, '! Aborting'); {$ENDIF}

Run the app. with debug symbols under the debugger and when it stops at the
breakpoint copy the call stack and post it here.

--
Arno

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


Re: [twsocket] FTP Error 426

2012-04-18 Thread Matt Minnis
You guys rock!
Thanks Arno  Angus!

Apparently when running automated, some event tripped one of my exception
handler's which set a form variable to true
UploadFrm.FCanceled
In beginning of OnProgress handler I check for this and set abort to true.
Before initiating the FTP upload I reset this variable and voila! It works!
:)

::happy dance::

Was beating my head against this for some time and knew it would be some
sniggly bit like this that was escaping my radar.

Thanks,
Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: Wednesday, April 18, 2012 2:19 PM
To: ICS support mailing
Subject: Re: [twsocket] FTP Error 426

Arno Garrels wrote:
 Matt Minnis wrote:
 Call stack:
 TCustomFtpCli.AbortAsync
 TCustomFtpCli.Progress
 
 Check your OnProgress or OnProgess64 event handler.
 It must set var Abort to true.

It should not, however obviously it does.

--
Arno 

--
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] FTP Error 426

2012-04-17 Thread Matt Minnis
I am getting a spurious error 426 (426 Operation aborted.) when I run my 
program automated to upload files to a ftp site.  When I do the exact same 
steps manually in same exe, it works fine.
Error Listed below from my own logs.
I checked all the settings, they are identical between runs, I exported the 
component settings to XML and they are identical to the byte.

I use the Menu-Click events to trigger each step when running automatically, I 
see no reason why this would be failing.  :(
I am taking a SQL backup of our database, archiving it, then uploading to a FTP 
site.
Since this is being uncooperative, I have hardcoded the settings to rule that 
stuff out.

Anyone have any experience with this error 426 that might be able to shed some 
light on this to help me?

I am using Delphi 7 and ICS7.

Here's what I did to automate this:  (initiated by timer event)
procedure StartProcessing();
begin
  UploadFrm.DBBackup1.Click();
  UploadFrm.GetDBInfo1.Click();
  UploadFrm.Make7Z1.Click();
  UploadFrm.MakeMD51.Click();
  UploadFrm.InitiateFTP2.Click();
end;

These are the same steps I do manually in this same order.  I tried a sleep of 
2000 between each, but no dice.

This is maddening, I have to be overlooking something really really stupid.

If anyone can help, I would appreciate it.

Thanks,
Matt

Error:
###Resume Put
16:05:56: FTP: FtpClient1ReadyToTransmit: 
ftp Request PutAsync Done.
ftp StatusCode = 150
ftp LastResponse was : '150 Opening BINARY mode data connection for 
4071Ascend4.09.7z'
 ftp Error = 426 (426 Operation aborted.)
16:05:57: FTP Upload Process Canceled

--
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] Client Server connectivity

2011-12-15 Thread Matt Minnis
How does one handle client/server connectivity in a way that avoids needing
to do port forwarding in routers?
Ie Something like LogmeIn.com.  How do they have it so you log into their
server and can contact the client machine even behind a firewall?
I'm starting on a project and need to know how to do something like this.  I
plan to use ICS to do it, but I am trying to figure out how to architect the
connections.

Any thoughts/suggestions?

Thanks,
Matt

--
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] Creatively annoying a host

2011-07-06 Thread Matt Minnis
I like the idea of sending massive amounts of random data to them
Have a banned URL list and anyone requesting one on the list gets the
contents of war and peace over and over...  Or something equally
interesting...  
As long as you have no bandwidth constraints, this should be golden.

Need to cause them pain and flogging is not properly transmitted via IP
traffic...   :)

Any way to do some creative routing and point them back at themselves?

Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Angus Robertson - Magenta Systems Ltd
Sent: Wednesday, July 06, 2011 12:44 PM
To: twsocket@elists.org
Subject: [twsocket] Creatively annoying a host

My various web servers suffer regular attacks looking for exploits, the
current one is looking for php, 100 odd URLs at a time including:

GET //dbadmin/scripts/setup.php
GET //phpMyAdmin-2.5.5-rc1/scripts/setup.php
GET //mysqlmanager/scripts/setup.php
GET /muieblackcat

In my ICS web server, I was wondering what sort of creative response I could
make to these requests, to annoy or slow down the hackers?  

I could leave the connection open without sending a response?

Or send a vast amount of rubbish data in response?

Any other suggestions?

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


Re: [twsocket] TTwitter component

2011-02-21 Thread Matt Minnis
It doesn't need to be complete.
If all one wants to do is tweet a message, then this would be enough, yes?
I would be interested in using it for various status projects.

Please post what you have.

Thanks,
Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of brian -
Sent: Monday, February 21, 2011 4:25 PM
To: ICS support mailing
Subject: Re: [twsocket] TTwitter component

Always been a bit skeptic about open source, how do you make money from that
:)

On Sun, Feb 20, 2011 at 3:23 PM, Francois PIETTE
francois.pie...@skynet.bewrote:

 closed source for now since im using it for another large project, and 
 the
 libraries are not complete, it's mostly just the steps to auth with 
 twitter and send the messages.


 :-(

 You should really consider making in freeware/opensource.
 You'll gain something: other people will find bugs and make enhancements.
 Your own applications will then be better. And you'll enter the hall of
 fames :-)


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

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


Re: [twsocket] help to convert from utf8 to ansi (locale)

2010-04-28 Thread Matt Minnis
The %## codes are representations of the character.  It looks like a URL
encoding scheme to me.
For example:  %20 is the space character. The %C3%AD looks to be the letter
i with the accent.
Run it though a URL Decoder and see if that doesn’t get you what you are
looking for?

Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Xavier Mor-Mur
Sent: Wednesday, April 28, 2010 14:19
To: ICS support mailing
Subject: [twsocket] help to convert from utf8 to ansi (locale)

Hi to all

I need to parse text to send via email if there are declared any file.
If text is html and saved from word processors or html editors all chars out
of first 127 ASCII set are convert using utf8 convention.
What I need is recover original text to check if declared files exists.

First I was working with BCB5 but it have reduced support for unicode
strings.
Now I'm using BC2009 but I'm walking around the same point.

Example of I get as parameter and what I need to test :
from file I get Sin%20t%C3%ADtulo%201_html_m5b7e3440.jpg
and I need Sin título1_html_m5b7e3440.jpg

I played with ansi, wide, unicode, utf8 variables and functions with no
success.

Thanks in advance for your help.

--
Xavier Mor-Mur

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


Re: [twsocket] help to convert from utf8 to ansi (locale)

2010-04-28 Thread Matt Minnis
Curiosity struck, so I googled it...
Apparently you aren't the only one with this issue.
If you have the string before it gets encoded in the 1st place you can
convert to UTF8 first, then encode it to URL so you can decode it properly.
If you don't have access to the string before encoding... I think you have a
problem and may have to handle on your own.  You might be able to detect the
1st as a high ascii value and use that to flag using both to combine as one.

If you do find/create a solution, let us know.  I'm sure we'll run across
needing something like that at some point...

Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Xavier Mor-Mur
Sent: Wednesday, April 28, 2010 15:53
To: ICS support mailing
Subject: Re: [twsocket] help to convert from utf8 to ansi (locale)

Thanks for the tip.

I tried it with no success.
URLEncode and URLDecode work apparently byte a byte and %C3%AD are converted
as individual chars.
UTF8Encode and UTF8Decode I don't get it work.
certainly I'm doing something wrong.

Regards
Xavi

Al 28/04/2010 22:36, En/na Matt Minnis ha escrit:
 The %## codes are representations of the character.  It looks like a 
 URL encoding scheme to me.
 For example:  %20 is the space character. The %C3%AD looks to be the 
 letter i with the accent.
 Run it though a URL Decoder and see if that doesn't get you what you 
 are looking for?

 Matt

 -Original Message-
 From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] 
 On Behalf Of Xavier Mor-Mur
 Sent: Wednesday, April 28, 2010 14:19
 To: ICS support mailing
 Subject: [twsocket] help to convert from utf8 to ansi (locale)

 Hi to all

 I need to parse text to send via email if there are declared any file.
 If text is html and saved from word processors or html editors all 
 chars out of first 127 ASCII set are convert using utf8 convention.
 What I need is recover original text to check if declared files exists.

 First I was working with BCB5 but it have reduced support for unicode 
 strings.
 Now I'm using BC2009 but I'm walking around the same point.

 Example of I get as parameter and what I need to test :
 from file I get Sin%20t%C3%ADtulo%201_html_m5b7e3440.jpg
 and I need Sin título1_html_m5b7e3440.jpg

 I played with ansi, wide, unicode, utf8 variables and functions with 
 no success.

 Thanks in advance for your help.

 --
 Xavier Mor-Mur

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



 Se certificó que el correo entrante no contiene virus.
 Comprobada por AVG - www.avg.es
 Versión: 9.0.814 / Base de datos de virus: 271.1.1/2840 - Fecha de la 
 versión: 04/28/10 08:27:00



--
Xavier Mor-Mur

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


Re: [twsocket] Multiple FTP Clients

2010-04-13 Thread Matt Minnis
1.  Is there a reason you want/need to do this?  If not, don't
complicate your life. 
2.  Others have responded sufficiently to this. 

Thanks,
Matt 

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of GRAHAM (Deephaven)
Sent: Tuesday, April 13, 2010 09:53
To: 'ICS support mailing'
Subject: [twsocket] Multiple FTP Clients

I use the ICS FTP client to connect to an FTP server running on Linux.

1:
This server has the ability to run in a simple FTP mode that only uses the
control socket for all transfers. Is there a way I can configure the ICS FTP
Client to operate like this?

2:
In another situation, connecting to the same FTP server, I would like to
have two FTP clients in my application, both logged on to the same server
with the same username and password. Then each FTP client would navigate to
different directories and download files in parallel. The server allows the
login but are there any fundamental reasons why this would not work?

Thanks for any help
Graham

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


Re: [twsocket] Business offer--clustering support

2009-10-27 Thread Matt Minnis
Those things Francois suggested may work or some sort of gateway/proxy
application that acts as a middleman and handles the redirection.

Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Francois PIETTE
Sent: Tuesday, October 27, 2009 11:42 AM
To: ICS support mailing
Subject: Re: [twsocket] Business offer--clustering support

 Let's say we have two computers running our software. One of them is 
 on
 IP1
 and the other IP2. If the IP1 fails for hardware/software reason, IP2 
 should be answering as if IP1 has never failed or with some low 
 interval.
 Something
 like NLB but with failover support as we will have full 
 application-aware layer (HTTP(S)).

 In my opinion, this could be made with DNS or with DHCP IP change from 
 IP2 to IP1 of the machine who use to have IP2.

DNS, maybe. Problem when client has fixed IP configured.
DHCP, probably not. How would the client know the new IP ?


 Francois and I wonder what else methods people on the list might
 suggest(?)

Using BigIP product (http://www.f5.com/products/big-ip/) or similar.
Using Windows Clustering (never used nor even studied it).

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

--
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] THttpServer under ICSv7 and BCB2007

2009-05-11 Thread Matt Minnis
If you are getting AV's use something like EurekaLog to trap and report them
with a call stack.
https://www.eurekalog.com/index.php

I use this all the time, saves tons of time tracking these things down.
Worth every penny/euro.

Matt 

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Fastream Technologies
Sent: Monday, May 11, 2009 1:10 PM
To: ICS support mailing
Subject: Re: [twsocket] THttpServer under ICSv7 and BCB2007

Hi,

On 5/11/09, Arno Garrels arno.garr...@gmx.de wrote:
 Fastream Technologies wrote:
  The problem is I must run my C++ project with release config as 
  otherwise it gives av due to memory fragmentation (HEAVY duty!).

 If you want to debug, debug information have to be included, that's 
 true. But those AVs are IMO a hint that something went rather wrong in 
 your code, though I'm not very familiar with C++ Builder.

Long time ago, I read that mt apps with much RAM usage is causing these...
What BCB enables for C++ code is debugging for optimized code. However, this
is not the case with Pascal code.

Regards,

SZ



 --
 Arno Garrels


  Regards,
 
  SZ
 
 
  On 5/11/09, Arno Garrels arno.garr...@gmx.de wrote:
 
  Fastream Technologies wrote:
  Also FYI: I have defined in both gui app and package
 
  NOFORMS;USE_SSL;NO_ADVANCED_USE_OF_HTTP_CLIENT;SECURITY_WIN32;NO_DE
  BUG_LOG
  .
 
  The Delphi guys may say why don't you step into the code and debug 
  but BCB2007 does not let me step into Delphi code in C++ projects.
 
  It is possible, as long as the path to the .pas files is known.
  I did this several times, however foregot the exact steps how to 
  achieve that. It was easy anyway. From memory, when you step in 
  with
  F7 C++ Builder even pops up a dialog where you can enter the 
  correct path if not yet set up somewhere in the options.
 
  --
  Arno Garrels
 
 
 
 
  Regards,
 
  Gorkem Ates
 
 
  On 5/11/09, Fastream Technologies ga...@fastream.com wrote:
 
  Hello,
 
  I have an upgraded code from v6. The below line:
 
  adminHTTPServer = new THttpServer(NULL);
 
  causes AV (write of address 0014). Any idea what might have I 
  done wrong? This is a GUI app but for debugging the service so do 
  not want to use Forms::Application.
  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

-- 
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] [OT] Problem migrating ProxyInfo to D2009

2009-02-17 Thread Matt Minnis
Yeah, we all have days like that.
On those days, you'll save yourself time by doing something else. 

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: Tuesday, February 17, 2009 13:20
To: ICS support mailing
Subject: Re: [twsocket] [OT] Problem migrating ProxyInfo to D2009

Arno Garrels wrote:
 
 What is TInitializeAutoProxyDll?

Sorry, found, I should stop coding today :)

--
Arno Garrels


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


Re: [twsocket] TX509Base

2008-12-29 Thread Matt Minnis
I use WinGrep for searching code:
http://www.wingrep.com/

Thanks,
Matt 

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: Sunday, December 28, 2008 09:33
To: ICS support mailing
Subject: Re: [twsocket] TX509Base

A Drent wrote:
 TX509Base:
 I'm trying to locate it, but cannot find it.

In ICS V6/V7 it's in OverbyteIcsWSocket.pas,
in latest ICS V5 Subversion revision it's in WSocket.pas.
It should show up in the structure pane when USE_SSL is defined,
if not, a rebuild of the ICS package(s) might help.

Btw: The IDE provides a feature Find in Files in the Search menu. 

--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html


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


Re: [twsocket] Error trying to connect to FTP

2008-12-12 Thread Matt Minnis
It works fine on other servers and systems, so this one is just odd.

Thanks for the thoughts.

Matt 

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Matt Minnis
Sent: Wednesday, December 10, 2008 14:46
To: 'ICS support mailing'
Subject: Re: [twsocket] Error trying to connect to FTP

Here's a clue:
Telnet connection to FTP worked.

As I walked through I got to this step:
list
150 Opening ASCII mode data connection for /bin/ls.
425 Can't open data connection. 

So something is blocking traffic... grr... shouldn't have anything installed
that can do that.

What on Windows Server 2003 can block the FTP dataport?
There is no firewall or antivirus installed, Windows firewall is not on
either.

Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Francois PIETTE
Sent: Wednesday, December 10, 2008 14:20
To: ICS support mailing
Subject: Re: [twsocket] Error trying to connect to FTP

OK. So the sample program doesn't work: I guess there is something weird on 
your system. I have no idea what but it is probably related to a firewall or

similar security product.

I would suggest now to try with command line telnet on the same computer to 
connect to the FTP server. Something like:
telenet FtpServerHostName 21
and see if you receive the FTP server banner.
If you don't then this confirm something weird in your system.

--
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: Matt Minnis ma...@firestreamww.com
To: 'ICS support mailing' twsocket@elists.org
Sent: Wednesday, December 10, 2008 8:44 PM
Subject: Re: [twsocket] Error trying to connect to FTP


 From FTPTst:

 Winsock version 2.2
 WinSock 2.0
 Running
 Executing Requested Command
 Request OpenAsync Done.
 StatusCode = 500
 LastResponse was : '500 ESocketException: No Error (#0 in Connect)'
 Error = 500 (500 ESocketException: No Error (#0 in Connect))
  220 Microsoft FTP Service

 So its something peculiar to these machines I'd guess.

 Thanks,
 Matt


 -Original Message-
 From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
 Behalf Of Francois PIETTE
 Sent: Wednesday, December 10, 2008 13:35
 To: ICS support mailing
 Subject: Re: [twsocket] Error trying to connect to FTP

 To help find where the problem is, I suggest to use FtpTst demo program to
 test the same connection. We will know if the issue comes from your code 
 or
 from something weird on thos computers.

 --
 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: Matt Minnis ma...@firestreamww.com
 To: 'ICS support mailing' twsocket@elists.org
 Sent: Wednesday, December 10, 2008 7:57 PM
 Subject: Re: [twsocket] Error trying to connect to FTP


I was trying to manually connect.
 That is the only connect call in the pipe.
 I sent this code as a simplified version of what I actually have.  I have
 the try..except and so forth.
 What is the correct way to do what I am trying to do here?

 Matt

 -Original Message-
 From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
 Behalf Of Arno Garrels
 Sent: Wednesday, December 10, 2008 12:44
 To: ICS support mailing
 Subject: Re: [twsocket] Error trying to connect to FTP

 Most likely you call Connect while a previous call to Connect
 is still in the pipe (some loop, TTimer etc.)?

  Form1.FTPClient1.Connect(); Log(5, '{hms}: FTP: Connected
 (hopefully)');   //  --- not actually connected at this point  :(

 That's true and the great nature of non-blocking methods.
 Connect is asynchron, you should call it only in case a previously
 call to Connect returned in OnRequestDone. Also method Connect should
 always be enclosed in a try except block since it might raise an
 exception.

 --
 Arno Garrels [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html



 Matt Minnis wrote:
 Using Delphi 7, ICS FTPCli V6.03

 On some machines I get the following error:  500 ESocketException: No
 Error (#0 in Connect)

 Excerpt from my log:
 10:45:07: FTP: Ready to connect
 ftp Request ConnectAsync Done.
 ftp StatusCode = 500
 ftp LastResponse was : '500 ESocketException: No Error (#0 in
 Connect)' ftp Error = 500 (500 ESocketException: No Error (#0 in
 Connect))

 This however works on other machines, ftp connects just fine and can
 do all the transfers I need to.

 I can connect manually (cmd prompt ftp) to the site just fine.
 I am trying to use Passive mode ftp, though I havent gotten that far
 yet in the process so that shouldn't matter.

 There is no firewall or antivirus on this particular server.

 Code snippet:

  SetCurrentDir(ExtractFilePath(FileName));
  Form1.FTPClient1.Password

Re: [twsocket] C++ Builder strange AV in OverbyteHttpTst.cpp

2008-12-12 Thread Matt Minnis
Is the 0th item null or something odd like that?
 

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: Friday, December 12, 2008 11:30
To: ICS support mailing
Subject: [twsocket] C++ Builder strange AV in OverbyteHttpTst.cpp

Hi,

What's going on:

for (I = 0; I  HttpCli1-RcvdHeader-Count; I++)
AV here == DisplayMemo-Lines-Add(hdr +
HttpCli1-RcvdHeader-Strings[I]);

HttpCli1-RcvdHeader is assigned (of course) and Count is greater zero,
however
I get an AV on the first iteration??

--
Arno Garrels



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


Re: [twsocket] C++ Builder strange AV in OverbyteHttpTst.cpp

2008-12-12 Thread Matt Minnis
Which compiler switch? 

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: Friday, December 12, 2008 14:10
To: ICS support mailing
Subject: Re: [twsocket] C++ Builder strange AV in OverbyteHttpTst.cpp

Arno Garrels wrote:
 for (I = 0; I  HttpCli1-RcvdHeader-Count; I++)
 AV here == DisplayMemo-Lines-Add(hdr +
 HttpCli1-RcvdHeader-Strings[I]); 

Turned out to be just the common 'compiler switch hell' in C++ Builder.

--
Arno Garrels
-- 
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] Error trying to connect to FTP

2008-12-10 Thread Matt Minnis
Using Delphi 7, ICS FTPCli V6.03
 
On some machines I get the following error:  500 ESocketException: No Error
(#0 in Connect)
 
Excerpt from my log:
10:45:07: FTP: Ready to connect
ftp Request ConnectAsync Done.
ftp StatusCode = 500
ftp LastResponse was : '500 ESocketException: No Error (#0 in Connect)'
ftp Error = 500 (500 ESocketException: No Error (#0 in Connect))
 
This however works on other machines, ftp connects just fine and can do all
the transfers I need to.
 
I can connect manually (cmd prompt ftp) to the site just fine.
I am trying to use Passive mode ftp, though I havent gotten that far yet in
the process so that shouldn't matter.
 
There is no firewall or antivirus on this particular server.
 
Code snippet:
 
  SetCurrentDir(ExtractFilePath(FileName));
  Form1.FTPClient1.Password := FTPPassword;
  Form1.FTPClient1.UserName := FTPUser;
  Form1.FTPClient1.LocalFileName := ExtractFileName(FileName);
  Form1.FTPClient1.HostFileName := ExtractFileName(FileName);
  Form1.FTPClient1.HostDirName := '/';
  //If not connected then try connecting
  Log(5, '{hms}: FTP: Ready to connect');
  if (Form1.FTPClient1.Connected = false) then Form1.FTPClient1.Connect();
  Log(5, '{hms}: FTP: Connected (hopefully)');   //  --- not actually
connected at this point  :(
 
Using the ICS Logger set as:  ICSLogger1.LogOptions :=
[loDestEvent,loDestFile,loDestOutDebug,loAddStamp,loWsockErr,loWsockInfo,loW
sockDump];
I get very little:
10:45:07:176 TWSocket will connect to xxx.xxx.xxx.xxx:21
10:45:07:238 00A4DA90 TriggerDataSent 1276
 
Anyone know the cause of this?
What can I do to troubleshoot this?
 
Thanks!
Matt
 
-- 
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] Error trying to connect to FTP

2008-12-10 Thread Matt Minnis
I was trying to manually connect.
That is the only connect call in the pipe.
I sent this code as a simplified version of what I actually have.  I have
the try..except and so forth.
What is the correct way to do what I am trying to do here?

Matt 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Arno Garrels
Sent: Wednesday, December 10, 2008 12:44
To: ICS support mailing
Subject: Re: [twsocket] Error trying to connect to FTP

Most likely you call Connect while a previous call to Connect
is still in the pipe (some loop, TTimer etc.)?

  Form1.FTPClient1.Connect(); Log(5, '{hms}: FTP: Connected
 (hopefully)');   //  --- not actually connected at this point  :(

That's true and the great nature of non-blocking methods.
Connect is asynchron, you should call it only in case a previously 
call to Connect returned in OnRequestDone. Also method Connect should
always be enclosed in a try except block since it might raise an
exception.

--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html



Matt Minnis wrote:
 Using Delphi 7, ICS FTPCli V6.03
 
 On some machines I get the following error:  500 ESocketException: No
 Error (#0 in Connect)
 
 Excerpt from my log:
 10:45:07: FTP: Ready to connect
 ftp Request ConnectAsync Done.
 ftp StatusCode = 500
 ftp LastResponse was : '500 ESocketException: No Error (#0 in
 Connect)' ftp Error = 500 (500 ESocketException: No Error (#0 in
 Connect)) 
 
 This however works on other machines, ftp connects just fine and can
 do all the transfers I need to.
 
 I can connect manually (cmd prompt ftp) to the site just fine.
 I am trying to use Passive mode ftp, though I havent gotten that far
 yet in the process so that shouldn't matter.
 
 There is no firewall or antivirus on this particular server.
 
 Code snippet:
 
  SetCurrentDir(ExtractFilePath(FileName));
  Form1.FTPClient1.Password := FTPPassword;
  Form1.FTPClient1.UserName := FTPUser;
  Form1.FTPClient1.LocalFileName := ExtractFileName(FileName);
  Form1.FTPClient1.HostFileName := ExtractFileName(FileName);
  Form1.FTPClient1.HostDirName := '/';
  //If not connected then try connecting
  Log(5, '{hms}: FTP: Ready to connect');
  if (Form1.FTPClient1.Connected = false) then
  Form1.FTPClient1.Connect(); Log(5, '{hms}: FTP: Connected
 (hopefully)');   //  --- not actually connected at this point  :(
 
 Using the ICS Logger set as:  ICSLogger1.LogOptions :=

[loDestEvent,loDestFile,loDestOutDebug,loAddStamp,loWsockErr,loWsockInfo,loW
 sockDump];
 I get very little:
 10:45:07:176 TWSocket will connect to xxx.xxx.xxx.xxx:21
 10:45:07:238 00A4DA90 TriggerDataSent 1276
 
 Anyone know the cause of this?
 What can I do to troubleshoot this?
 
 Thanks!
 Matt
-- 
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


Re: [twsocket] Error trying to connect to FTP

2008-12-10 Thread Matt Minnis
From FTPTst:

Winsock version 2.2
WinSock 2.0
Running
Executing Requested Command
Request OpenAsync Done.
StatusCode = 500
LastResponse was : '500 ESocketException: No Error (#0 in Connect)'
Error = 500 (500 ESocketException: No Error (#0 in Connect))
 220 Microsoft FTP Service

So its something peculiar to these machines I'd guess.

Thanks,
Matt
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Francois PIETTE
Sent: Wednesday, December 10, 2008 13:35
To: ICS support mailing
Subject: Re: [twsocket] Error trying to connect to FTP

To help find where the problem is, I suggest to use FtpTst demo program to 
test the same connection. We will know if the issue comes from your code or 
from something weird on thos computers.

--
[EMAIL PROTECTED]
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: Matt Minnis [EMAIL PROTECTED]
To: 'ICS support mailing' twsocket@elists.org
Sent: Wednesday, December 10, 2008 7:57 PM
Subject: Re: [twsocket] Error trying to connect to FTP


I was trying to manually connect.
 That is the only connect call in the pipe.
 I sent this code as a simplified version of what I actually have.  I have
 the try..except and so forth.
 What is the correct way to do what I am trying to do here?

 Matt

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Arno Garrels
 Sent: Wednesday, December 10, 2008 12:44
 To: ICS support mailing
 Subject: Re: [twsocket] Error trying to connect to FTP

 Most likely you call Connect while a previous call to Connect
 is still in the pipe (some loop, TTimer etc.)?

  Form1.FTPClient1.Connect(); Log(5, '{hms}: FTP: Connected
 (hopefully)');   //  --- not actually connected at this point  :(

 That's true and the great nature of non-blocking methods.
 Connect is asynchron, you should call it only in case a previously
 call to Connect returned in OnRequestDone. Also method Connect should
 always be enclosed in a try except block since it might raise an
 exception.

 --
 Arno Garrels [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html



 Matt Minnis wrote:
 Using Delphi 7, ICS FTPCli V6.03

 On some machines I get the following error:  500 ESocketException: No
 Error (#0 in Connect)

 Excerpt from my log:
 10:45:07: FTP: Ready to connect
 ftp Request ConnectAsync Done.
 ftp StatusCode = 500
 ftp LastResponse was : '500 ESocketException: No Error (#0 in
 Connect)' ftp Error = 500 (500 ESocketException: No Error (#0 in
 Connect))

 This however works on other machines, ftp connects just fine and can
 do all the transfers I need to.

 I can connect manually (cmd prompt ftp) to the site just fine.
 I am trying to use Passive mode ftp, though I havent gotten that far
 yet in the process so that shouldn't matter.

 There is no firewall or antivirus on this particular server.

 Code snippet:

  SetCurrentDir(ExtractFilePath(FileName));
  Form1.FTPClient1.Password := FTPPassword;
  Form1.FTPClient1.UserName := FTPUser;
  Form1.FTPClient1.LocalFileName := ExtractFileName(FileName);
  Form1.FTPClient1.HostFileName := ExtractFileName(FileName);
  Form1.FTPClient1.HostDirName := '/';
  //If not connected then try connecting
  Log(5, '{hms}: FTP: Ready to connect');
  if (Form1.FTPClient1.Connected = false) then
  Form1.FTPClient1.Connect(); Log(5, '{hms}: FTP: Connected
 (hopefully)');   //  --- not actually connected at this point  :(

 Using the ICS Logger set as:  ICSLogger1.LogOptions :=


[loDestEvent,loDestFile,loDestOutDebug,loAddStamp,loWsockErr,loWsockInfo,loW
 sockDump];
 I get very little:
 10:45:07:176 TWSocket will connect to xxx.xxx.xxx.xxx:21
 10:45:07:238 00A4DA90 TriggerDataSent 1276

 Anyone know the cause of this?
 What can I do to troubleshoot this?

 Thanks!
 Matt
 -- 
 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


Re: [twsocket] Error trying to connect to FTP

2008-12-10 Thread Matt Minnis
Here's a clue:
Telnet connection to FTP worked.

As I walked through I got to this step:
list
150 Opening ASCII mode data connection for /bin/ls.
425 Can't open data connection. 

So something is blocking traffic... grr... shouldn't have anything installed
that can do that.

What on Windows Server 2003 can block the FTP dataport?
There is no firewall or antivirus installed, Windows firewall is not on
either.

Matt

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Francois PIETTE
Sent: Wednesday, December 10, 2008 14:20
To: ICS support mailing
Subject: Re: [twsocket] Error trying to connect to FTP

OK. So the sample program doesn't work: I guess there is something weird on 
your system. I have no idea what but it is probably related to a firewall or

similar security product.

I would suggest now to try with command line telnet on the same computer to 
connect to the FTP server. Something like:
telenet FtpServerHostName 21
and see if you receive the FTP server banner.
If you don't then this confirm something weird in your system.

--
[EMAIL PROTECTED]
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: Matt Minnis [EMAIL PROTECTED]
To: 'ICS support mailing' twsocket@elists.org
Sent: Wednesday, December 10, 2008 8:44 PM
Subject: Re: [twsocket] Error trying to connect to FTP


 From FTPTst:

 Winsock version 2.2
 WinSock 2.0
 Running
 Executing Requested Command
 Request OpenAsync Done.
 StatusCode = 500
 LastResponse was : '500 ESocketException: No Error (#0 in Connect)'
 Error = 500 (500 ESocketException: No Error (#0 in Connect))
  220 Microsoft FTP Service

 So its something peculiar to these machines I'd guess.

 Thanks,
 Matt


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Francois PIETTE
 Sent: Wednesday, December 10, 2008 13:35
 To: ICS support mailing
 Subject: Re: [twsocket] Error trying to connect to FTP

 To help find where the problem is, I suggest to use FtpTst demo program to
 test the same connection. We will know if the issue comes from your code 
 or
 from something weird on thos computers.

 --
 [EMAIL PROTECTED]
 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: Matt Minnis [EMAIL PROTECTED]
 To: 'ICS support mailing' twsocket@elists.org
 Sent: Wednesday, December 10, 2008 7:57 PM
 Subject: Re: [twsocket] Error trying to connect to FTP


I was trying to manually connect.
 That is the only connect call in the pipe.
 I sent this code as a simplified version of what I actually have.  I have
 the try..except and so forth.
 What is the correct way to do what I am trying to do here?

 Matt

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Arno Garrels
 Sent: Wednesday, December 10, 2008 12:44
 To: ICS support mailing
 Subject: Re: [twsocket] Error trying to connect to FTP

 Most likely you call Connect while a previous call to Connect
 is still in the pipe (some loop, TTimer etc.)?

  Form1.FTPClient1.Connect(); Log(5, '{hms}: FTP: Connected
 (hopefully)');   //  --- not actually connected at this point  :(

 That's true and the great nature of non-blocking methods.
 Connect is asynchron, you should call it only in case a previously
 call to Connect returned in OnRequestDone. Also method Connect should
 always be enclosed in a try except block since it might raise an
 exception.

 --
 Arno Garrels [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html



 Matt Minnis wrote:
 Using Delphi 7, ICS FTPCli V6.03

 On some machines I get the following error:  500 ESocketException: No
 Error (#0 in Connect)

 Excerpt from my log:
 10:45:07: FTP: Ready to connect
 ftp Request ConnectAsync Done.
 ftp StatusCode = 500
 ftp LastResponse was : '500 ESocketException: No Error (#0 in
 Connect)' ftp Error = 500 (500 ESocketException: No Error (#0 in
 Connect))

 This however works on other machines, ftp connects just fine and can
 do all the transfers I need to.

 I can connect manually (cmd prompt ftp) to the site just fine.
 I am trying to use Passive mode ftp, though I havent gotten that far
 yet in the process so that shouldn't matter.

 There is no firewall or antivirus on this particular server.

 Code snippet:

  SetCurrentDir(ExtractFilePath(FileName));
  Form1.FTPClient1.Password := FTPPassword;
  Form1.FTPClient1.UserName := FTPUser;
  Form1.FTPClient1.LocalFileName := ExtractFileName(FileName);
  Form1.FTPClient1.HostFileName := ExtractFileName(FileName);
  Form1.FTPClient1.HostDirName := '/';
  //If not connected then try connecting
  Log(5, '{hms}: FTP: Ready to connect');
  if (Form1.FTPClient1.Connected = false) then
  Form1.FTPClient1.Connect(); Log(5, '{hms}: FTP: Connected
 (hopefully