Re: [twsocket] Should next ICS version support anything before Delphi XE ?

2012-04-05 Thread Info2004

Hi,

I have some old projects on D2006 that get tweaked from time to time. 
Using V6? No major new development.


Anything new is now using XE.

...Andy
On 28/03/2012 19:59, François Piette wrote:

Hi !



I’m planning the next ICS version…

Being unable to use any features added to Delphi in the last 10 years is
very restricted.  Maybe we need to cease support for old Delphi versions ?
Of course ICS V5 and V7 will remains available however, the only changes
will be bug fixes.



What do you think ? Please keep your answer as short as possible, I just
want to have an idea about how many of you are still using an old Delphi
version.



--

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] Help with stalling ftp client

2012-02-01 Thread Info2004

Hi,

Some additional information after hooking up wireshark.

I have attached a csv of the capture.

What it shows me is that I get the 150 from the server, I then send an 
ACK, but I don't send the FTP-DATA.


Then of course, I don't see the request done event, because I have not 
sent the data.


For the ACK to go out after the 150 response I am assuming that the ftp 
client has seen the response, and sent the ack. Or am I mistaken? Is 
this a lower level interaction? (in winsock somewhere)


Why would I not send the data - is my question really?

I don't have any Application.ProcessMessages loops in my application - 
apart from a start up splash screen, and an application shut down loop 
waiting for a thread to close down. Neither are active when my ftp stalls.


The thread I create has nothing (intentionally) to do with the ftp 
client. It monitors a usb serial port, downloads serial data and creates 
files on the file system. This thread is not downloading serial data and 
creating files, as there is no device connected.


I do now detect the stall with a timer, but don't currently restart - 
just display a message so that the user can retry.


I am logging all RequestDone events, and nothing is reported when I 
stall. I have attached the csv that shows the last good transfer, then 
the stall. If an alternative format is preferred, just ask.


Ideas?

Thanks,

Andy
On 31/01/2012 15:43, Info2004 wrote:

Hi,

I have been using the ftp client component for a couple of years now
without a hitch. Until recently. The version is 7.09.

I have in the main thread a timer that runs a state machine to control
logging in and sending of the files. But recently, the state machine
stalls and times out. I have logged the debug from the component, and
you can see two successful sends, and the last one fails.

In the failed send, the STOR is issued, but the 150 Opening ASCII ...
does not happen. This is as a result of calling PutAsync on the component.

Now before I dust off wireshark, does anybody know what could cause the
150 after the STOR command?



--
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 with stalling ftp client - attachment contents

2012-02-01 Thread Info2004
Attachment did not work so here it is: (ahh, can't stop thunderbird 
wrapping - sorry)


No. TimeSource  Destination Protocol
Length  Info
190 10.344855   192.168.1.3165.212.180.79   FTP 72  
Request: PASV
191	10.524256	65.212.180.79	192.168.1.31	FTP	117	Response: 227 Entering 
Passive Mode (65,212,180,79,214,237)
192	10.524302	192.168.1.31	65.212.180.79	TCP	66	54818  ftp [ACK] 
Seq=494 Ack=1663 Win=8 Len=0 TSval=443118091 TSecr=384651593
193	10.525193	192.168.1.31	65.212.180.79	TCP	78	54831  55021 [SYN] 
Seq=0 Win=65535 Len=0 MSS=1460 WS=2 TSval=443118091 TSecr=0 SACK_PERM=1
194	10.701375	65.212.180.79	192.168.1.31	TCP	74	55021  54831 [SYN, ACK] 
Seq=0 Ack=1 Win=5792 Len=0 MSS=1402 SACK_PERM=1 TSval=384651774 
TSecr=443118091 WS=64
195	10.701407	192.168.1.31	65.212.180.79	TCP	66	54831  55021 [ACK] 
Seq=1 Ack=1 Win=66720 Len=0 TSval=443118267 TSecr=384651774
196	10.702119	192.168.1.31	65.212.180.79	FTP	105	Request: STOR 
18012012_1014160_leeEcersley.csv
197	10.880935	65.212.180.79	192.168.1.31	FTP	143	Response: 150 Opening 
ASCII mode data connection for 18012012_1014160_leeEcersley.csv
198	10.880970	192.168.1.31	65.212.180.79	TCP	66	54818  ftp [ACK] 
Seq=533 Ack=1740 Win=66642 Len=0 TSval=443118445 TSecr=384651954

199 10.881595   192.168.1.3165.212.180.79   FTP-DATA157 
FTP Data: 91 bytes
200	10.881754	192.168.1.31	65.212.180.79	TCP	66	54831  55021 [FIN, ACK] 
Seq=92 Ack=1 Win=66720 Len=0 TSval=443118445 TSecr=384651774
201	11.062593	65.212.180.79	192.168.1.31	TCP	66	55021  54831 [ACK] 
Seq=1 Ack=92 Win=5824 Len=0 TSval=384652133 TSecr=443118445
202	11.062625	192.168.1.31	65.212.180.79	TCP	66	54831  55021 [FIN, ACK] 
Seq=92 Ack=1 Win=66720 Len=0 TSval=443118625 TSecr=384652133
203	11.063438	65.212.180.79	192.168.1.31	TCP	66	55021  54831 [FIN, ACK] 
Seq=1 Ack=93 Win=5824 Len=0 TSval=384652136 TSecr=443118445
204	11.063465	192.168.1.31	65.212.180.79	TCP	66	54831  55021 [ACK] 
Seq=93 Ack=2 Win=66720 Len=0 TSval=443118625 TSecr=384652136
205	11.064379	65.212.180.79	192.168.1.31	FTP	89	Response: 226 Transfer 
complete
206	11.064404	192.168.1.31	65.212.180.79	TCP	66	54818  ftp [ACK] 
Seq=533 Ack=1763 Win=66696 Len=0 TSval=443118626 TSecr=384652137

207 11.142144   192.168.1.3165.212.180.79   FTP 72  
Request: PASV
208	11.316388	65.212.180.79	192.168.1.31	FTP	115	Response: 227 Entering 
Passive Mode (65,212,180,79,202,2)
209	11.316422	192.168.1.31	65.212.180.79	TCP	66	54818  ftp [ACK] 
Seq=539 Ack=1812 Win=66670 Len=0 TSval=443118878 TSecr=384652389
210	12.820295	192.168.1.31	65.212.180.79	TCP	78	54832  51714 [SYN] 
Seq=0 Win=65535 Len=0 MSS=1460 WS=2 TSval=443120374 TSecr=0 SACK_PERM=1
211	13.010071	65.212.180.79	192.168.1.31	TCP	74	51714  54832 [SYN, ACK] 
Seq=0 Ack=1 Win=5792 Len=0 MSS=1402 SACK_PERM=1 TSval=384654080 
TSecr=443120374 WS=64
212	13.010112	192.168.1.31	65.212.180.79	TCP	66	54832  51714 [ACK] 
Seq=1 Ack=1 Win=66720 Len=0 TSval=443120563 TSecr=384654080
213	13.010847	192.168.1.31	65.212.180.79	FTP	105	Request: STOR 
18012012_1014360_leeEcersley.csv
214	13.191201	65.212.180.79	192.168.1.31	FTP	143	Response: 150 Opening 
ASCII mode data connection for 18012012_1014360_leeEcersley.csv
215	13.191241	192.168.1.31	65.212.180.79	TCP	66	54818  ftp [ACK] 
Seq=578 Ack=1889 Win=66642 Len=0 TSval=443120743 TSecr=384654264


On 01/02/2012 15:00, Info2004 wrote:

Hi,

Some additional information after hooking up wireshark.

I have attached a csv of the capture.

What it shows me is that I get the 150 from the server, I then send an
ACK, but I don't send the FTP-DATA.

Then of course, I don't see the request done event, because I have not
sent the data.

For the ACK to go out after the 150 response I am assuming that the ftp
client has seen the response, and sent the ack. Or am I mistaken? Is
this a lower level interaction? (in winsock somewhere)

Why would I not send the data - is my question really?

I don't have any Application.ProcessMessages loops in my application -
apart from a start up splash screen, and an application shut down loop
waiting for a thread to close down. Neither are active when my ftp stalls.

The thread I create has nothing (intentionally) to do with the ftp
client. It monitors a usb serial port, downloads serial data and creates
files on the file system. This thread is not downloading serial data and
creating files, as there is no device connected.

I do now detect the stall with a timer, but don't currently restart -
just display a message so that the user can retry.

I am logging all RequestDone events, and nothing is reported when I
stall. I have attached the csv that shows the last good transfer, then
the stall. If an alternative format is preferred, just ask.

Ideas?

Thanks,

Andy
On 31/01/2012 15:43, Info2004 wrote:

Hi,

I have been using the ftp client component for a couple of years now
without a hitch. Until recently. The version is 7.09.

I have in the main

Re: [twsocket] Help with stalling ftp client

2012-02-01 Thread Info2004

Arno,

Thanks. I will check that out.

If it persists, I will do as advised and upload the file and post a link.

Regards,

Andy
On 01/02/2012 17:00, Arno Garrels wrote:

Info2004 wrote:

Hi,

Some additional information after hooking up wireshark.

I have attached a csv of the capture.


The list server stripped the attachment, please upload the file
to some webserver and post the URL here.



What it shows me is that I get the 150 from the server,


Now V7.11 comes to my mind, it fixed a bug back in 2010 that
might be the cause of your problem, please try latest ICSv7
from http://wiki.overbyte.be/wiki/index.php/ICS_Download
and let us know whether or not the problem persists.



--
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] Help with stalling ftp client

2012-01-31 Thread Info2004

Hi,

I have been using the ftp client component for a couple of years now 
without a hitch. Until recently. The version is 7.09.


I have in the main thread a timer that runs a state machine to control 
logging in and sending of the files. But recently, the state machine 
stalls and times out. I have logged the debug from the component, and 
you can see two successful sends, and the last one fails.


In the failed send, the STOR is issued, but the 150 Opening ASCII ... 
does not happen. This is as a result of calling PutAsync on the component.


Now before I dust off wireshark, does anybody know what could cause the 
150 after the STOR command?


debug
Sending to server: 17012012_1315390_leeEcersley.csv
 PASV
 227 Entering Passive Mode (65,212,180,79,135,10)
! Upload Size 91
 STOR 17012012_1315390_leeEcersley.csv
 150 Opening ASCII mode data connection for 
17012012_1315390_leeEcersley.csv

 226 Transfer complete
! 91bytes received/sent in 360 milliseconds
Request 18 Done.
StatusCode = 226
LastResponse was : '226 Transfer complete'
Sending to server: 17012012_1317030_leeEcersley.csv
 PASV
 227 Entering Passive Mode (65,212,180,79,156,230)
! Upload Size 91
 STOR 17012012_1317030_leeEcersley.csv
 150 Opening ASCII mode data connection for 
17012012_1317030_leeEcersley.csv

 226 Transfer complete
! 91bytes received/sent in 360 milliseconds
Request 18 Done.
StatusCode = 226
LastResponse was : '226 Transfer complete'
Sending to server: 17012012_1319010_leeEcersley.csv
 PASV
 227 Entering Passive Mode (65,212,180,79,238,1)
! Upload Size 91
 STOR 17012012_1319010_leeEcersley.csv
/debug

Thanks,

Andy
--
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 with stalling ftp client

2012-01-31 Thread Info2004

On 31/01/2012 17:41, Arno Garrels wrote:


I guess the server did not send a response to the STOR
request after the client successfully established the data
connection. Since this is async mode your application
should have detected and handled a request timeout.


Arno,

What is the correct way to handle this scenario?

Can I issue another PutAsync, or will I need to close the connection and 
start again?


Regards,

Andy
--
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 with stalling ftp client

2012-01-31 Thread Info2004

On 31/01/2012 19:05, Brian Culverwell wrote:

probably your backend ftp server has been changed to 'binary' type - and
when receiving your request to STOR the .csv file - it is issuing a type A
to change the mode to ASCII

You could force the Type A before issuing your STOR.



Brian,

Do you mean to set ascii initially after logging on, or before each STOR 
(PutAsync) ?


Regards,

Andy

--
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 with stalling ftp client

2012-01-31 Thread Info2004

OK.

Thanks.

On 31/01/2012 21:46, Brian Culverwell wrote:

before each STOR

On Wed, Feb 1, 2012 at 6:27 AM, Info2004info2...@asamicros.com  wrote:


On 31/01/2012 19:05, Brian Culverwell wrote:


probably your backend ftp server has been changed to 'binary' type - and
when receiving your request to STOR the .csv file - it is issuing a type A
to change the mode to ASCII

You could force the Type A before issuing your STOR.



Brian,

Do you mean to set ascii initially after logging on, or before each STOR
(PutAsync) ?

Regards,

Andy

--
To unsubscribe or change your settings for TWSocket mailing list
please goto 
http://lists.elists.org/cgi-**bin/mailman/listinfo/twsockethttp://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] [OT] Hoping somone can point me in the right direction with IE and file save

2010-12-18 Thread Info2004

Thank you very much. Spot on with your advise.

Added an ETag header to fix my problem.

Regards,

Andy
RTT wrote:




Are the headers as you guys would expect?


The Vary: * header prevents the response from being cached, so IE 
gets confused when processing the save attachment request.


--
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] [OT] Hoping somone can point me in the right direction with IE and file save

2010-12-17 Thread Info2004

Hi,

I have a site the works fine with Firefox and Chrome, but is problematic 
with IE. It used to work until reported faulty yesterday.


There is a button on the page that calls a php script that generates a 
file, and prompts the user to save the file.


IE (8) says:
Internet Explorer cannot download export_service_transactions.php from 
itagworld.com.


Internet Explorer was not able to open this Internet site.  The 
requested site is either unavailable or cannot be found.  Please try 
again later.


IE does get the file data, it's just not playing ball with the save part.

I captured the headers using Fiddler:

HTTP/1.1 200 OK
Date: Fri, 17 Dec 2010 16:38:56 GMT
Server: Apache
Cache-Control: must-revalidate, post-check=0, pre-check=0
Content-Description: File Transfer
Content-Disposition: attachment; filename=asset_data_171210.xls
Content-Transfer-Encoding: binary
Expires: 0
Vary: *
Keep-Alive: timeout=5, max=50
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/x-comma-separated-values

33f
dbId	SiteId	PoolId	AssetTypeId	SerialNumber	OrganisationId 
Description	LocationTxt	Approved	VoltageTypeId	DateTimeCreated 
LastActionDateTime	LastActionId	assetNotes	RefNo	Deleted 
invalidSerialNumber	encodeType	installationDate	userWhoCreatedId 
userWhoDeletedId	EventTime	ActivityCodeId	OperatorText	SiteName 
ActivityCodeDescription	AssetDescription	catagory	Volt 
CustomerReference	fillingSystem
3611	205		1	038348170034	5			1	3	2010-12-08 00:00:00	2010-12-07 
10:17:45	94			0	0		-00-00	105		2010-12-07 10:15:00	9	Service2	DSC E 
St Albans Brighthouse	Filled with Water	Battery	Maintenance	48V		Water 
Injectors
3611	205		1	038348170034	5			1	3	2010-12-08 00:00:00	2010-12-07 
10:17:45	94			0	0		-00-00	105		2010-12-07 10:17:45	94	Service2	DSC E 
St Albans Brighthouse	Battery 48V	Battery	Asset Registration	48V		Water 
Injectors


0


Are the headers as you guys would expect?
Anyone had the same issue?

Failing anything else, where is the best place to go for help on such 
matters? Google seems to throw a lot of config/firewall refs at me. All 
tried - and don't forget, this was working and I have not changed the 
source or my local settings.


Regards,

Andy
--
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] Hoping somone can point me in the right direction with IE and file save

2010-12-17 Thread Info2004

Francois,

My ICS projects are working very well. Thanks for asking.

Appropriate forum - yes, it's why I asked if someone can point me in the 
right direction.


With the wealth of knowledge on this forum, I was hoping that someone 
had encountered this same or similar situation, possibly using an ICS 
component in their web server.


I do not intend clogging up this forum with a debate on my woes, the 
subject says it all really. If you can't help - fine.


...Andy
Francois PIETTE wrote:

Hello Andy,

Is this related to ICS ?
If not, please repost into an appropriate forum.
If yes, please explain more clearly.

--
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: Info2004 info2...@asamicros.com
To: twsocket@elists.org
Sent: Friday, December 17, 2010 5:50 PM
Subject: [twsocket] [OT] Hoping somone can point me in the right 
direction with IE and file save




Hi,

I have a site the works fine with Firefox and Chrome, but is 
problematic with IE. It used to work until reported faulty yesterday.


There is a button on the page that calls a php script that generates a 
file, and prompts the user to save the file.


IE (8) says:
Internet Explorer cannot download export_service_transactions.php 
from itagworld.com.


Internet Explorer was not able to open this Internet site.  The 
requested site is either unavailable or cannot be found.  Please try 
again later.


IE does get the file data, it's just not playing ball with the save part.

I captured the headers using Fiddler:

HTTP/1.1 200 OK
Date: Fri, 17 Dec 2010 16:38:56 GMT
Server: Apache
Cache-Control: must-revalidate, post-check=0, pre-check=0
Content-Description: File Transfer
Content-Disposition: attachment; filename=asset_data_171210.xls
Content-Transfer-Encoding: binary
Expires: 0
Vary: *
Keep-Alive: timeout=5, max=50
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/x-comma-separated-values

33f
dbId SiteId PoolId AssetTypeId SerialNumber OrganisationId Description 
LocationTxt Approved VoltageTypeId DateTimeCreated LastActionDateTime 
LastActionId assetNotes RefNo Deleted invalidSerialNumber encodeType 
installationDate userWhoCreatedId userWhoDeletedId EventTime 
ActivityCodeId OperatorText SiteName ActivityCodeDescription 
AssetDescription catagory Volt CustomerReference fillingSystem
3611 205 1 038348170034 5 1 3 2010-12-08 00:00:00 2010-12-07 10:17:45 
94 0 0 -00-00 105 2010-12-07 10:15:00 9 Service2 DSC E St Albans 
Brighthouse Filled with Water Battery Maintenance 48V Water Injectors
3611 205 1 038348170034 5 1 3 2010-12-08 00:00:00 2010-12-07 10:17:45 
94 0 0 -00-00 105 2010-12-07 10:17:45 94 Service2 DSC E St Albans 
Brighthouse Battery 48V Battery Asset Registration 48V Water Injectors


0


Are the headers as you guys would expect?
Anyone had the same issue?

Failing anything else, where is the best place to go for help on such 
matters? Google seems to throw a lot of config/firewall refs at me. 
All tried - and don't forget, this was working and I have not changed 
the source or my local settings.


Regards,

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


[twsocket] Connect to FTP proxy not in transparent mode - prompt for account

2010-05-17 Thread Info2004

Hi,

If the ftp proxy is prompting for account, how should I connect?

Should I set the account string property and call ConnectAsync, or 
should I call ConnectAsync then AcctAsync, or just call AcctAsync?


I'm struggling to test as I have no access to the proxy in question, 
otherwise I'd just use trial and error.


Googling for a proxy to download and install is coming up with lots that 
use transparent mode, but that's not what I need.


Anyone used a free ftp proxy that can use authentication?

Andy
--
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] Connect to FTP proxy not in transparent mode - promptfor account

2010-05-17 Thread Info2004

Dave,
Dave Baxter wrote:

Hi.

Your best bet, as your user wants to use a specific proxy, is to ask
them to provide you with an install of such a proxy (as a loan item,
that you will return to them when you're done developing and testing)
with the account setup instructions, so you can make your own test
system, allowing you to freely test your code, without anoying any other
system users/owners or whoever.

If the proxy is prompting you for an account, you have connected!  What

I know, I just don't know how to progress with the account info.

I'm trying to get info out of these guys, but it's incredibly difficult. 
I'm getting snippets from different people. I've been told that it is 
not a transparent proxy, that there is no authentication required at the 
proxy.


Being no expert in this field, some things seem to contradict others.

Anyhoo, I'll press on and get to the bottom of it somehow.

Thanks,

Andy




you need to find out is what the account details are, that you need to
feed it, so it can give you access to where you (your user) needs to go
to.

Regards.

Dave B.
 


-Original Message-
From: Info2004 [mailto:info2...@asamicros.com] 
Sent: 17 May 2010 09:54

To: ICS support mailing
Subject: [twsocket] Connect to FTP proxy not in transparent 
mode - promptfor account


Hi,

If the ftp proxy is prompting for account, how should I connect?

Should I set the account string property and call 
ConnectAsync, or should I call ConnectAsync then AcctAsync, 
or just call AcctAsync?


I'm struggling to test as I have no access to the proxy in 
question, otherwise I'd just use trial and error.


Googling for a proxy to download and install is coming up 
with lots that use transparent mode, but that's not what I need.


Anyone used a free ftp proxy that can use authentication?

Andy



--
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 through proxy not in transparent mode

2010-05-11 Thread Info2004

Dave,

Thanks for the link. I'll check it out.

I have not tried connecting through this proxy myself as the customers 
customer is in Au, I'm in the UK. It's taken an age just to get to this 
point.


...Andy
Dave Baxter wrote:

I presume you're looking for this...  ?

http://proxy.wow.ag/proxyOnlyAnonymous.php?offset=0

There is a list of Transparrent proxies, if you look down the left of
that page.

I think they are Web/HTTP related, also needing the client to use a
specific port to connect to the proxy with.  I'm not sure you'll get any
ordinary (even Pasv mode) FTP to work through them.

WoW in this case is World of Webcams.  And I suspect it's more for self
disguise (hiding) as anything.  Why does your user want to use such a
proxy anyway?

Just guessing here, but have you tried Pasiv mode?   (If you don't
try, you never know?)

Cheers.

Dave B





-Original Message-
From: Info2004 [mailto:info2...@asamicros.com] 
Sent: 10 May 2010 09:10

To: ICS support mailing
Subject: [twsocket] FTP through proxy not in transparent mode

Hi,

I have an application which uses OverbyteIcsFtpCli version 
V2.108. It's working great - no problems.


However, a customer wants to use this application through his 
proxy (wowproxy), and it's not using transparent mode.


So, anyone used this or similar combo? Can I get it to work?

I googled wowproxy, but got lots of hits for world of 
warcraft - not really what I'm after.


Thanks,

Andy



--
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 through proxy not in transparent mode

2010-05-11 Thread Info2004

Francois,



Usually non transparent FTP proxies work by connecting to the proxy 
itself and then when asked username, entering the real user name 
followed by and @ and the remote server name. Sometimes the @ character 
is replaced by a # character.


I was under the impression that this was how transparent proxies work, 
based on comments in the source:


How to use a Proxy or Firewall ?
   First of all, not all proxies or firewalls are the same. So have a 
look at
   product documentation. However, most products support a transparent 
proxy

   which doesn't require any special programming:
   1) Instead of connection to a remote FTP server, you connect to the 
proxy
   2) User name is replaced by user name, followed by '@' sign then 
followed

  by target remote FTP server host name.
   3) Password is usual remote FTP server password.
   4) Most require using Passive mode.
   Example: You want to connect to ftp.borland.com, using anonymous 
connection,

company firewall/proxy is running on host named proxyserver.
FtpCli1.HostName := 'proxyserver';
FtpCli1.UserName := 'anonym...@ftp.borland.com';
FtpCli1.Password := 'your.em...@company';
FtpCli1.Passive  := TRUE;

Or am I getting muddled here?

...Andy


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


[twsocket] FTP through proxy not in transparent mode

2010-05-10 Thread Info2004

Hi,

I have an application which uses OverbyteIcsFtpCli version V2.108. It's 
working great - no problems.


However, a customer wants to use this application through his proxy 
(wowproxy), and it's not using transparent mode.


So, anyone used this or similar combo? Can I get it to work?

I googled wowproxy, but got lots of hits for world of warcraft - not 
really what I'm after.


Thanks,

Andy
--
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] OT Delphi ADO question

2009-04-01 Thread Info2004
Sorry for the OT guys, but I'm not getting any response on 
forums.codegear.com, and since you guys know your stuff, I'm hoping for 
some tips.

I am using an ADO stored proc to call a stored proc on a MSSQL server.

One of the parameters in the stored proc on the server is a 
Decimal(28,20) but delphi detects this in the parameters list and sets 
it to ftBCD, precision 28, scale of 20.

Now, trying to insert a number of 53.4167098 ends up in the database as 
53.4167, and the profiler captures this as well. So, something happening 
at the delphi end.

I am using Turbo 2006.

I have manually changed the parameter field type to ftFloat in the GUI, 
and also in code just before the call is made to the assignment of the 
value. But still the truncation.

Any ideas guys?

Regards,

Andy
-- 
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 Delphi ADO question

2009-04-01 Thread Info2004
Angus,

Thanks for the response.

Yes I'm using the stored proc component. No data aware controls.

So, you solution would be something like creating a string:

exec sp_InsertVehicleData;1 '2009/01/17
15:48:12',1,'0358104000636686','0F611B8C',17,$53.5161,$-2.2367,0,$15475.
5996,$0.,$0.,0,0,'S',0,0,0,0,0,0,0,0,'',$-2.2367,$53.5161,$65535.000
0,0x010358104000636686FF447800344015FF2A0F611B8C11EAC5738C79105642C0260F
C8B904C0260FC07910564200FF7F47900105,60,1,'447800344015'

which is the command captured with the profiler.

Am I understanding you correctly?

Regards,

Andy


Angus Robertson - Magenta Systems Ltd wrote:
 I am using an ADO stored proc to call a stored proc on a MSSQL 
 server.
 One of the parameters in the stored proc on the server is a 
 Decimal(28,20) but delphi detects this in the parameters list and 
 sets it to ftBCD, precision 28, scale of 20.
 
 It sounds like you are using the stored procedure component, and some
 data conversion is going wrong.  Unless you are using data aware controls
 or something, you can build the command and parameter list for the stored
 procedure as a simple widestring and use the EXECUTE method in the
 connection to run it.  You can get a result set and read it as string
 numerics, to get whatever precision you need.  
 
 ADO only deals in ASCII, not numerics, all conversions to internal SQL
 data types take place in ADO or SQL itself, not Delphi. 
 
 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


Re: [twsocket] OT Delphi ADO question

2009-04-01 Thread Info2004
Angus,

Fantastic answer. Thanks for going the extra distance to explain it. 
It's appreciated.

Yep to the application :)

Regards,

Andy

Angus Robertson - Magenta Systems Ltd wrote:
 exec sp_InsertVehicleData;1 '2009/01/17
 15:48:12',1,'0358104000636686','0F611B8C',17,$53.5161,$-2.2367,0
 ,$15475.
 5996,$0.,$0.,0,0,'S',0,0,0,0,0,0,0,0,'',$-2.2367,$53.5161,$6
 5535.000
 0,0x010358104000636686FF447800344015FF2A0F611B8C11EAC5738C791056
 42C0260F
 C8B904C0260FC07910564200FF7F47900105,60,1,'447800344015'
 
 So you're collecting moving vehicle GPS data from a UK mobile telephone
 modem for a map, seen it all before g
 
 So, you solution would be something like creating a string:
 
 Essentially yes, except ADO adds sp_ and ;1 so just use the stored
 procedure name:
 
 exec InsertVehicleData xxx 
 
 And you've got a wide range of data types in your parameter list there,
 which you need to ensure match the data types in the stored procedure,
 those hex strings look strange, but then I don't store binary stuff.
 You're original error could be in those strings.  You might be better
 passing strange numbers as VARCHAR and converting them to numerics in the
 stored procedure itself, assuming you can mess with it. 
 
 Getting back on topic with ICS, this is how I build the parameter to save
 my FTP server statistics in SQL:
 
 cmd := 'EXEC ftp_events_updx1 ' +
 IntToStr (FtpServers [servnr].StartId) + paramSep +
 QuotedStr (EventState) + paramSep +
 QuotedStr (Comment) + paramSep +
 '0' + paramSep +  // endpos
 IntToStr (FtpServers [servnr].TotalXmit) + paramSep +
 IntToStr (FtpServers [servnr].TotalRecv) + paramSep +
 IntToStr (secs) + paramSep +  // duration secs
 IntToStr (FtpServers [servnr].MaxSpeedXmit) + paramSep +
 IntToStr (FtpServers [servnr].MaxSpeedRecv) ;
 ExecSqlFtpCmd (cmd) ;
 
 and this is the core of the function to call SQL and get a resultset,
 which just contains two fields with an error code and description in this
 case, but could be a million records.
 
 DataSetFtpUpd.Recordset := ADOConn.Execute (cmd) ;
 if DataSetFtpUpd.RecordCount = 1 then
 begin
dbretcode := DataSetFtpUpd.Fields[0].DisplayText ;
result := AscToInt (DataSetFtpUpd.Fields[2].DisplayText) ;
 end ;
   
 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


Re: [twsocket] processmessages or messagepump

2008-07-19 Thread info2004
Arno,
Arno Garrels wrote:
 info2004 wrote:
 How would I implement a timeout? Do I create a timer component within
 the thread, or is there a more elegant solution?
 
 A timer is ok since your thread processes messages already :-)
 You could, for example, use an integer that is incremented in timer's 
 event handler and reset it to zero when TWSocket receives something. 
 In the timer event handler check that integer.
I'll look into the timer solution then.

But first.Holiday.

Thanks for your help.

Regards,

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


Re: [twsocket] processmessages or messagepump

2008-07-18 Thread info2004
Francois, and Arno,

 while not terminated do
  begin
  WSocket.MessagePump;
  // check if I need to do something
  sleep(100);
  end;
 // close it all down
 Or am I missing the point in the use of the message pump?
 
 Yes, you miss something. The code you've done will be very slow at 
 processing events because of the sleep. And it you remove the sleep, it will 
 use all CPU.
OK.
 
 The solution is simple: you need to use a real message loop. Easy: just call 
 MessageLoop which all TWSocket instances have. To terminate the message 
 loop, you can post a WM_QUIT message when you detect your thread has 
 terminated.

If I do:
while not terminated do
  begin
  WSocket.MessageLoop;
  // check if I need to do something
  end;
// close it all down

Then my understanding from what you have said is that I only get to the
// check if I need to do something

when a quit is posted.

I am running a finite state machine in the execute loop, which marshalls 
responses, checks timeouts etc. If I don't exit the message loop, I can't do 
this.

Really sorry if I am missing the point on this. Long hours, fried brain.

Regards,

Andy
 
 --
 [EMAIL PROTECTED]
 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] processmessages or messagepump

2008-07-17 Thread info2004
Arno,

So in execute is it Ok to:

while not terminated do
  begin
  WSocket.MessagePump;
  // check if I need to do something
  sleep(100);
  end;
// close it all down

Or am I missing the point in the use of the message pump?

Regards,

Andy
Arno Garrels wrote:
 info2004 wrote:
 In my thread (I know, you don't need threads...), in the execute
 procedure, should I call WSocket.ProcessMessages, or
 WSocket.MessagePump? 
 
 TWSocket.ProcessMessages processes pending messages once and returns. 
 You should call TWSocket.MessageLoop instead since it waits for 
 and processes messages in a loop. Sending message WM_QUIT breaks the loop.
 Do not use TWSocket.ProcessMessages or TWSocket.MessagePump in a loop,
 that would slow down performance and result in high CPU use.
 
 Are they the same? If not, what is the difference?
 
 No, TWSocket.MessagePump is a method that either calls 
 Application.ProcessMessages or TWSocket.ProcessMessages depending
 on define NOFORMS or your custom message pump if event OnMessagePump
 is assigned.
 
 BTW: All this stuff has been moved in ICS v6 to TIcsWndControl.
 
 --
 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


[twsocket] processmessages or messagepump

2008-07-16 Thread info2004
Hi,

In my thread (I know, you don't need threads...), in the execute procedure, 
should I call WSocket.ProcessMessages, or WSocket.MessagePump?

Are they the same? If not, what is the difference?

Thanks,

Andy
-- 
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] processmessages or messagepump

2008-07-16 Thread info2004
Hi again,

When I got my grep correct, I found it in WSocket.pas.

Looks like they are the same when multithreaded is true.

...Andy
info2004 wrote:
 Hi,
 
 In my thread (I know, you don't need threads...), in the execute procedure, 
 should I call WSocket.ProcessMessages, or WSocket.MessagePump?
 
 Are they the same? If not, what is the difference?
 
 Thanks,
 
 Andy

-- 
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] [OT] Killing threads

2008-06-27 Thread info2004
Hi,

I am using ICS in my project, but this is not ICS related.

I would like to ask you guys how I can kill a thread created in my main thread, 
from the main thread itself.

If the created thread becomes unresponsive due to ADO operation not returning - 
not got to the bottom of that one yet, can I kill the thread and have it clean 
up after itself, so that I can start again and create a new thread?

I know, I need to get the the real issue, but when the damn thing jams up at 9 
minutes past midnight, I just want to kick start the process and get on with 
some sleep.

A pointer to some tutorials will do for now.

Thanks,

Andy
-- 
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] TWSocket.Send timing

2008-05-15 Thread info2004
Wilfried,

Dan was correct. The time I noted was for Send to return, not for the data to 
actually be sent.

Given the 300ms for Send to return, is this to be expected?

If it is, then I will look to optimise elsewhere. But it just seems likely that 
something is a miss - wrong option setting maybe.

Regards,

Andy
Wilfried Mestdagh wrote:
 Hello Dan,
 
 As far as I know it shouldn't cause the TWSocket send call to take
 longer since that is asynchronous
 
 Correct, but I think he means the total time to send, not the time of
 the function call.
 
 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz
 

-- 
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] TWSocket.Send timing

2008-05-15 Thread info2004
Wilfried,

ErmOops. etc.

My debug function to log the timestamps was the culprit. I should have just 
grabbed the time before, then the time after and done the math. What I actually 
did was review my log file with timestamps in it. This was the cause of the 
delay.

Using the time before and after the call, I am seeing anything between 15 and 
41 
ms for the call to return. Not the 300 previously reported.

The ICS version is 6.04 according to one of the source files.

Regards,

Andy
Wilfried Mestdagh wrote:
 Hello Andy,
 
 Dan was correct. The time I noted was for Send to return, not for the data to
 actually be sent.
 
 Sorry then I have given you a wrong answer.
 
 Given the 300ms for Send to return, is this to be expected?
 
 No it should return immediatly, the function is async. Are you
 absolutely sure of this? Do you have a recent version of ICS?
 
 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz
 
 Thursday, May 15, 2008, 09:09, info2004 wrote:
 
 Wilfried,
 
 Dan was correct. The time I noted was for Send to return, not for the data to
 actually be sent.
 
 Given the 300ms for Send to return, is this to be expected?
 
 If it is, then I will look to optimise elsewhere. But it just seems likely 
 that
 something is a miss - wrong option setting maybe.
 
 Regards,
 
 Andy
 Wilfried Mestdagh wrote:
 Hello Dan,

 As far as I know it shouldn't cause the TWSocket send call to take
 longer since that is asynchronous
 Correct, but I think he means the total time to send, not the time of
 the function call.

 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz

 
 

-- 
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] OnDataSent event and related questions

2008-05-13 Thread info2004
Hi,

I am currently using the OnDataSent event of TWSocket to signal my state 
machine 
to move on. This is working mostly, however, sometimes, the event does not 
happen.

Now, at the far side, the server being connected to closes the connection when 
it has it's data, so I am thinking that this close will sometimes mask the 
OnDataSent. It is happening about 1 packet in 40, each packet being 60 bytes.

Some of the servers will not close the connection after a packet, and some do, 
some servers send a acknowledge packet back, so I need a reliable method of 
testing that the data has gone, before I can proceed in the state machine.

Is hooking the disconnect event a valid approach if the OnDataSent event does 
not fire?

Regards,

Andy
-- 
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] OnDataSent event and related questions

2008-05-13 Thread info2004
Arno,
Arno Garrels wrote:
 info2004 wrote:
 When the server closes the connection OnSessionClosed triggers. 
 In order to check whether component's internal send buffer is empty
 you have property BufferedByteCount.
 
 If your application has to close the connection when all data
 has been sent, you should use method ShutDown(1) from the OnDataSent
 event, this makes sure the receiver will receive everything.

I think that we are at cross purposes here. The OnDataSent event looks like it 
does not fire (sometimes) if the far end (server) closes the connection. Is 
this 
true?

The server gets the data, then closes the connection, and at my sending end if 
I 
solely wait for OnDataSent, sometimes it does not happen, and I time out.

I just really want to make sure my assumption is correct before I can put this 
to bed.

Regards,

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


[twsocket] TWSocket.Send timing

2008-05-13 Thread info2004
Hi,

I am logging the time before and after a call to Send. I am sending 60 bytes, 
and the Send call is taking 300ms to complete.

Does this sound right?

I am running a P4 2.4GHz 1G ram. I was expecting 10's of ms really.

If this is to be expected, then I won't ask the next question - which would be 
how to speed it up.

Regards,

Andy
-- 
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] TWSocket.Send timing

2008-05-13 Thread info2004
Wilfried,

I'll have a look on MSDN and see what they say.

I think that I will try and pad out my data to the min packet size an dsee if 
that speeds things up, or screws up the server.

Regards,

Andy
Wilfried Mestdagh wrote:
 Hello Andy,
 
 I am logging the time before and after a call to Send. I am sending 60 bytes,
 and the Send call is taking 300ms to complete.
 
 this is the nagle algoritm. nagle wait a little while to see if you want
 to send more. this is to fill up a complete packet of 1514 (?) bytes.
 You can speed it up by setting wsoTcpNoDelay in ComponentOptions in both
 ends, but this can slow down network performance. See MSDN at Microsoft
 are many articles discussing it.
 
 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz
 
 

-- 
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] [OT] ADOQuery async operation

2008-05-06 Thread info2004
Hi,

I have posted to newsgroups.borland.com, but so far no joy. I am using some ICS 
components in my project though;)

The problem I have is getting the ADO stuff to work asynchronously.

I am using a TADOQuery and have set ExecuteOptions to [eoAsyncExecute, 
eoAsyncFetch], and have set ADOQuery.OnFetchComplete := MyHandler.

I have two ADOQueries, one doing a 'SELECT *', and another doing an 'UPDATE'. 
The select query fires it's OnFetchComplete, no problem. The update query does 
not seem to fire anything.

All of this happens in a thread, and the ADOConnection, ADOQuery are created in 
the .Execute of the thread before my while (not Terminted) loop. All works as 
expected if I use sync calls, but I want to let other threads in whilst waiting 
for the results.

So, working on the assumption I have missed something, does anyone know of any 
articles on using ADOQuery asynchronously? Google is not proving to be of help 
so far.

Any help appreciated.

Regards,

Andy
-- 
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] ADOQuery async operation

2008-05-06 Thread info2004
Hi all,

Thanks for the tips. I'm sure that this nudge in the right direction will sort 
me out.

Regards,

Andy
Angus Robertson - Magenta Systems Ltd wrote:
 Instead use TAdoDataset for SELECT only and TAdoConnection / 
 TAdoCommand for other queries
 
 TAdoConnection works fine for SELECT as well, synchronously the EXECUTE
 method returns a _Recordset, as does the ExecuteComplete event for async
 use.  
 
 Higher level ADO and DB components do integrate with VCL, but I've always
 found it easier to build my own EXECUTE statements and parse the
 resultset (ie Recordset.Fields[0].Value) to fill VCL properties. 
 There's nothing worse than a bad date causing an AV filling a date picker.
 I had a bad day on 29th February this year. 
 
 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


[twsocket] Whick ports are required for TFTPClient

2008-02-08 Thread info2004
Hi,

Allowing port 21 through my router when using TFTPClient caused a data error 
when attempting to send a file.

Allowing port 20 cured this.

Sniffing the net showed that 22 has worked in some cases. Also, there is a 
difference between active and passive in terms of the extra port used.

Can TFTPClient just use the one port? I am sure that I normally only need to 
open port 21 at the router for things like CuteFTP.

...Andy
-- 
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] Monitor TWSocket listening status

2008-02-07 Thread info2004
Francois,

Do you have a shell application to be used as an example?

This looks really useful, but I have no idea on checking task lists and 
termination other apps.

Regards,

Andy
Francois Piette wrote:
 I think of adding several lines of code to monitor the listening status of
 the TWSocket, in case it was not the code kicks start it to listen again.
 This can help me to identify whether the problem is from the main thread.
 Can anybody kindly advise how to implement this mechanism?
 
 I have this guard mechanism implemented in several of my application. It
 is also implemented in many other application. Basically you write a second
 independent application which monitor the main application. Exactly what
 monitoring means depends on the application. In your case, you would simply
 connect to the main application and the disconnect. If the guard detect a
 problem, it restart the main application. The guard may also kill the main
 application when it doesn't respond anymore. And of course it also has to
 check for the main application existence in the task list.
 
 --
 [EMAIL PROTECTED]
 Author of ICS (Internet Component Suite, freeware)
 Author of MidWare (Multi-tier framework, freeware)
 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] What determines the number of concurrent connections?

2007-07-27 Thread info2004
Hi,

I have written a server based on OverbyteIcsTcpSrv1.pas.

If I test the original server(OverbyteIcsTcpSrv1.pas) I can make 100 
connections 
to this server, send some data and then disconnect.

When I test my server, as I run through the 1 to 100 connects, I start to get 
disconnects, and when I have reached 100 I only have 20 or so connections still 
connected. The others have been disconnected.

Where would I need to look to determine why this is happening?

I am testing on an XP machine, and I have also tried testing on a Server 2003 
machine, and combinations of both with the same results.

Thanks,

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


Re: [twsocket] What determines the number of concurrent connections?

2007-07-27 Thread info2004
Francois,

It's both machines that limit the connections with my server, but the source 
server example works just fine.

I will have a look through the searchable archive.

...Andy
Francois Piette wrote:
 I am testing on an XP machine, and I have also tried testing on a Server
 2003
 machine, and combinations of both with the same results.
 
 It is the XP machine which limit the number of connections.
 With Win2K3, you should be able to have thousands of connections, provided
 you have anough RAM.
 Search the mailing list archive, this is a topic frequently discussed.
 Link to searchable archive is on the support page at my website
 (http://www.overbyte.be).
 
 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 Author of ICS (Internet Component Suite, freeware)
 Author of MidWare (Multi-tier framework, freeware)
 http://www.overbyte.be
 
 
 - Original Message - 
 From: info2004 [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Friday, July 27, 2007 10:36 AM
 Subject: [twsocket] What determines the number of concurrent connections?
 
 
 Hi,

 I have written a server based on OverbyteIcsTcpSrv1.pas.

 If I test the original server(OverbyteIcsTcpSrv1.pas) I can make 100
 connections
 to this server, send some data and then disconnect.

 When I test my server, as I run through the 1 to 100 connects, I start to
 get
 disconnects, and when I have reached 100 I only have 20 or so connections
 still
 connected. The others have been disconnected.

 Where would I need to look to determine why this is happening?

 I am testing on an XP machine, and I have also tried testing on a Server
 2003
 machine, and combinations of both with the same results.

 Thanks,

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

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


Re: [twsocket] What determines the number of concurrent connections?

2007-07-27 Thread info2004
Francois,
Francois Piette wrote:
 It's both machines that limit the connections with my server,
 but the source server example works just fine.
 
 Not sure I understand...
 Do you mean the sample program delivered with ICS works OK but the code you
 wrote yourself is limited in the number of connections ?
Yes. Exactly.

I added my stuff to the ProcessData procedure, and added some variables to the 
  TTcpSrvClient = class(TWSocketClient) def.

Even if I update your orig server to include the new vars in   TTcpSrvClient = 
class(TWSocketClient), your server works, mine does not.

Looking through the searchable list, I tried increasing ListenBacklog from 5 to 
100, and my server now accepts 100 connections. Great.

What does ListenBacklog do?

I am using Turbo Delphi 2006, and the help system is just as crappy as D2005.

Regards,

Andy
 
 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 Author of ICS (Internet Component Suite, freeware)
 Author of MidWare (Multi-tier framework, freeware)
 http://www.overbyte.be
 

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


Re: [twsocket] What determines the number of concurrent connections?

2007-07-27 Thread info2004
Wilfried Mestdagh wrote:
 Hello,
 
 What does ListenBacklog do?
 
 It sets the maximum number of connections that are pending for
 acception. For example, if it is set to 5, and there are 10 clients
 connecting at the very same moment, only 5 will be in that queue.
 Normally you will never have problems with it if you accept very fast.

Thanks for that.

regards,

Andy
 
 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz
 

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


Re: [twsocket] Register your ICS !

2007-06-20 Thread info2004
Francois Piette wrote:
 Please take time to register your ICS. See readme.txt for details (In short:
 you must mail a picture postcard to me).
 
 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 Author of ICS (Internet Component Suite, freeware)
 Author of MidWare (Multi-tier framework, freeware)
 http://www.overbyte.be
 
I did many years ago. I trust that you got it.

regards,

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


[twsocket] Which threaded server sample to use

2007-06-04 Thread info2004
Hi,

I am using V6 beta with Turbo Delphi 2006.

Can someone tell me which threaded server demo I should use as my base for an 
app please.

MtSrv points you to ThrdSrv.  ThrdSrv has ThrdSrv, V2 and V3.

V2 works but does not like WM_TRIGGER_EXCEPTION.

V3 complains at TWSocketThrdServer - not found.

Thanks,

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


Re: [twsocket] Which threaded server sample to use

2007-06-04 Thread info2004
Arno,
Arno Garrels wrote:
 info2004 wrote:
 Hi,

 I am using V6 beta with Turbo Delphi 2006.

 Can someone tell me which threaded server demo I should use as my
 base for an app please.
 
 AFAIK none of the multi-threading demos is converted to V6 yet.
 ThrdSrv uses a design one thread per (client) connection, that's the
 easiest way to implement multi-threading with ICS.
 Another design was multiple (client) connections per thread.
 That's much harder to code and only suggested when scalability is required 
 that is when plenty of concurrent clients (beyond thousand) need to be
 served on multi-processor servers. Anyway tell us why do you think you
 need multiple threads for network communication.
The server will be accepting connections from mobile GPRS units. When they 
connect, they will be updating the firmware (128K bytes), and also sending 
configuration commands that will be gleaned from an MS SQL server.

I am quite happy that ICS does not need to be threaded - my first server using 
ICS uses just the main thread quite happily. But having these lengthy/blocking 
aspects to this server is pushing me down the threaded route.

As for whether ADO is thread safe, there are lots of conflicting opinions on 
the 
borland news server borland.public.delphi.database.ado.

Regards,

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

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


Re: [twsocket] Turbo Delphi, FastMM and V6beta question

2007-03-25 Thread info2004
Arno,
Arno Garrels wrote:
 info2004 wrote:
 Hi,

 I have installed Turbo Delphi 2006, OverbyteIcsV6beta.zip, and fastMM
 that I 
 downloaded today.
 
 You do not need FastMM since it is already built-in BDS2006,
 that's most likely not different in the Turbos.
I did not know that.
 
 In order to get leak-reports set
 ReportMemoryLeaksOnShutdown := TRUE;
 for instance in the constructor of the form.
I'll give this a go.

 
 Do you free the TWSocket instance or other ICS components correctly?
 Either drop a component on the form or create an instance at runtime
 instead if you use Turbo Explorer.
I have a mixture of components dropped onto the form, and some created by a 
thread.

The thread ones I free in the thread destructor, the ones dropped onto the main 
form in the IDE I thought would be cleared up by some delphi magic. Is this not 
the case and I have to free them implicitly?

Regards,

Andy
 
 Sample:
 
 TForm1 = class(TForm)
   procedure FormCreate(Sender: TObject);
   procedure FormDestroy(Sender: TObject);
 ..
 public
   MyWSocket : TWSocket;
 end;
 
 implementation 
 
 procedure TForm1.FormCreate(Sender: TObject);
 begin   
   MyWSocket := TWSocket.Create(Self);
 end;
 
 procedure TForm1.FormDestroy(Sender: TObject);
 begin
   MyWSocket.Free;
 end;
 
 --
 Arno Garrels [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 
 When I exit my program, fastMM is creating a log. A snip of which is:
 2007/3/23 15:40:59
  
 A memory block has been leaked. The size is: 452

 Stack trace of when this block was allocated (return addresses):
 403016 [EMAIL PROTECTED]
 404577 [system.pas][System][TObject.NewInstance][8824]
 40493E [EMAIL PROTECTED]
 4045AC [system.pas][System][TObject.Create][8839]
 48EB41
 [OverbyteIcsWndControl.pas][OverbyteIcsWndControl][TIcsWndHandlerPool.GetWndHandler][1017]
 48DD7F
 [OverbyteIcsWndControl.pas][OverbyteIcsWndControl][TIcsWndControl.AllocateHWnd][419]
 4939E7
 [OverbyteIcsWSocket.pas][OverbyteIcsWSocket][TCustomWSocket.AllocateSocketHWnd][4231]
 493ACF
 [OverbyteIcsWSocket.pas][OverbyteIcsWSocket][TCustomWSocket.Create][4268] 
 499420
 [OverbyteIcsWSocket.pas][OverbyteIcsWSocket][TCustomSocksWSocket.Create][7253]
 49AFD8
 [OverbyteIcsWSocket.pas][OverbyteIcsWSocket][TCustomLineWSocket.Create][8083]
  

 The block is currently used for an object of class: TIcsWndHandler

 The allocation number is: 4898

 Current memory dump of 256 bytes starting at pointer address 131D780:
 74 DB 48 00 FC 02 5A 00 70 55 32 01 70 55 32 01 70 55 32 01 70 55 32
 01 70 55 32 
 01 70 55 32 01
 70 55 32 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 
 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 
 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 
 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 
 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 
 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 
 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 
 00 00 00 00 00
 t  Û  H  .  ü  .  Z  .  p  U  2  .  p  U  2  .  p  U  2  .  p  U  2 
 .  p  U  2 
   .  p  U  2  .
 p  U  2  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
 .  .  .  . 
   .  .  .  .  .
 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
 .  .  .  . 
   .  .  .  .  .
 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
 .  .  .  . 
   .  .  .  .  .
 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
 .  .  .  . 
   .  .  .  .  .
 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
 .  .  .  . 
   .  .  .  .  .
 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
 .  .  .  . 
   .  .  .  .  .
 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
 .  .  .  . 
   .  .  .  .  .


 Now, is this 'normal' stuff, or really a leak?

 Any ideas?

 Thanks,

 Andy

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


[twsocket] Turbo Delphi, FastMM and V6beta question

2007-03-23 Thread info2004
Hi,

I have installed Turbo Delphi 2006, OverbyteIcsV6beta.zip, and fastMM that I 
downloaded today.

When I exit my program, fastMM is creating a log. A snip of which is:
2007/3/23 
15:40:59
A memory block has been leaked. The size is: 452

Stack trace of when this block was allocated (return addresses):
403016 [EMAIL PROTECTED]
404577 [system.pas][System][TObject.NewInstance][8824]
40493E [EMAIL PROTECTED]
4045AC [system.pas][System][TObject.Create][8839]
48EB41 
[OverbyteIcsWndControl.pas][OverbyteIcsWndControl][TIcsWndHandlerPool.GetWndHandler][1017]
48DD7F 
[OverbyteIcsWndControl.pas][OverbyteIcsWndControl][TIcsWndControl.AllocateHWnd][419]
4939E7 
[OverbyteIcsWSocket.pas][OverbyteIcsWSocket][TCustomWSocket.AllocateSocketHWnd][4231]
493ACF [OverbyteIcsWSocket.pas][OverbyteIcsWSocket][TCustomWSocket.Create][4268]
499420 
[OverbyteIcsWSocket.pas][OverbyteIcsWSocket][TCustomSocksWSocket.Create][7253]
49AFD8 
[OverbyteIcsWSocket.pas][OverbyteIcsWSocket][TCustomLineWSocket.Create][8083]

The block is currently used for an object of class: TIcsWndHandler

The allocation number is: 4898

Current memory dump of 256 bytes starting at pointer address 131D780:
74 DB 48 00 FC 02 5A 00 70 55 32 01 70 55 32 01 70 55 32 01 70 55 32 01 70 55 
32 
01 70 55 32 01
70 55 32 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 
00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 
00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 
00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 
00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 
00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 
00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 
00 00 00 00 00
t  Û  H  .  ü  .  Z  .  p  U  2  .  p  U  2  .  p  U  2  .  p  U  2  .  p  U  2 
  .  p  U  2  .
p  U  2  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
  .  .  .  .  .
.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
  .  .  .  .  .
.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
  .  .  .  .  .
.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
  .  .  .  .  .
.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
  .  .  .  .  .
.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
  .  .  .  .  .
.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
  .  .  .  .  .


Now, is this 'normal' stuff, or really a leak?

Any ideas?

Thanks,

Andy

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


[twsocket] TWSocket not connecting for me

2007-03-08 Thread info2004
Hi,

I have a problem with TWSocket.State staying as wsConnecting after I try 
and connect.

I am using a thread to execute an SQL query. For each result from this 
query, I connect to a remote server using the TWSocket, and send some 
data. That's the plan.

In the Thread.Execute procedure, I have created the TWSocket, then I run 
through a state machine to query the database, make the connection etc.

Does anyone know why .State would stay at wsConnecting?

I can connect to the server manually using telnet, and I don't have any 
problems providing additional info. Just didn't want to overload the 
email at this point.

Thanks,

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


Re: [twsocket] TWSocket not connecting for me

2007-03-08 Thread info2004
SZ,

Erm, I guess not. What do I need for that or where do I go to find out?

Regards,

Andy
Fastream Technologies wrote:
 Do you have a message pump in the thread.execute?
 
 Regards,
 
 SZ
 
 - Original Message - 
 From: info2004 [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 08, 2007 6:46 PM
 Subject: [twsocket] TWSocket not connecting for me
 
 
 Hi,

 I have a problem with TWSocket.State staying as wsConnecting after I try 
 and connect.

 I am using a thread to execute an SQL query. For each result from this 
 query, I connect to a remote server using the TWSocket, and send some 
 data. That's the plan.

 In the Thread.Execute procedure, I have created the TWSocket, then I run 
 through a state machine to query the database, make the connection etc.

 Does anyone know why .State would stay at wsConnecting?

 I can connect to the server manually using telnet, and I don't have any 
 problems providing additional info. Just didn't want to overload the 
 email at this point.

 Thanks,

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

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


Re: [twsocket] TWSocket not connecting for me

2007-03-08 Thread info2004
Francois,

Thanks for the response.

The .State parameter stays at wsConnecting for minutes - then I terminate.

I am going to look at SZ's messagepump angle, as that sounds quite 
promising.

Regards,

Andy
Francois PIETTE wrote:
 Maybe your  problem is that when calling Connect you ask the component to 
 connect. You get control back immediately (asynchronous method) while the 
 component try to establish the connection for you. Once the connection is 
 established, you have OnSessionConnected event which is triggered. This is 
 where you can start playing with send/receive.
 
 --
 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 http://www.overbyte.be
 
 
 - Original Message - 
 From: info2004 [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 08, 2007 5:46 PM
 Subject: [twsocket] TWSocket not connecting for me
 
 
 Hi,

 I have a problem with TWSocket.State staying as wsConnecting after I try
 and connect.

 I am using a thread to execute an SQL query. For each result from this
 query, I connect to a remote server using the TWSocket, and send some
 data. That's the plan.

 In the Thread.Execute procedure, I have created the TWSocket, then I run
 through a state machine to query the database, make the connection etc.

 Does anyone know why .State would stay at wsConnecting?

 I can connect to the server manually using telnet, and I don't have any
 problems providing additional info. Just didn't want to overload the
 email at this point.

 Thanks,

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

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


Re: [twsocket] TWSocket not connecting for me

2007-03-08 Thread info2004
SZ,

I had a look through the list and saw the ref's to get and peek etc.

I did a grep on the source and decided to use TWSocket.ProcessMessages 
in my Thread.Execute loop.

This seemed to work. The socket connects and I send my data.Are there 
going to be any pitfalls in doing this?

Thanks for the help.

regards,

Andy
Fastream Technologies wrote:
 Search for MessagePump/GetMessage API function in this list's archieve to 
 learn more. The TWSocket also contains a messagepump() function to see. If 
 you use sync methods, then the message pump is implicitly called until 
 needed. The bad thing is that there is a single action done in the thread. 
 If you want parallel execution in the same thread, use async/events plus 
 GetMessage of your own.
 
 Best Regards,
 
 SubZero
 
 - Original Message - 
 From: info2004 [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 08, 2007 7:37 PM
 Subject: Re: [twsocket] TWSocket not connecting for me
 
 
 SZ,

 Erm, I guess not. What do I need for that or where do I go to find out?

 Regards,

 Andy
 Fastream Technologies wrote:
 Do you have a message pump in the thread.execute?

 Regards,

 SZ

 - Original Message - 
 From: info2004 [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 08, 2007 6:46 PM
 Subject: [twsocket] TWSocket not connecting for me


 Hi,

 I have a problem with TWSocket.State staying as wsConnecting after I try
 and connect.

 I am using a thread to execute an SQL query. For each result from this
 query, I connect to a remote server using the TWSocket, and send some
 data. That's the plan.

 In the Thread.Execute procedure, I have created the TWSocket, then I run
 through a state machine to query the database, make the connection etc.

 Does anyone know why .State would stay at wsConnecting?

 I can connect to the server manually using telnet, and I don't have any
 problems providing additional info. Just didn't want to overload the
 email at this point.

 Thanks,

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

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


Re: [twsocket] TWSocket not connecting for me

2007-03-08 Thread info2004
Francois,
Francois PIETTE wrote:
 I had not noticed you where using threads. SZ is right: you need a message 
 pump in your thread.
 There are several multithread sample delivered with ICS-V5 (They are good 
 for ICS-V6)
 
 btw: You frequently don't need thread with ICS because it is asynchronous 
 and non-blocking. It multitask automatically WITHOUT using threads. 
 Programming is then much easier...
To date, I have used the components without additional threads. This is 
my first experience using threads. I had to do this because the SQL 
stuff I use (ADO) is blocking. If the SQL server is busy, or down, you 
get very large waits in your program. So I have moved the SQL stuff into 
it's own thread.

The main thread still uses TWSocketServer to accept the client connects.

Regards,

Andy
 
 --
 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 http://www.overbyte.be
 
 
 - Original Message - 
 From: info2004 [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 08, 2007 6:49 PM
 Subject: Re: [twsocket] TWSocket not connecting for me
 
 
 Francois,

 Thanks for the response.

 The .State parameter stays at wsConnecting for minutes - then I terminate.

 I am going to look at SZ's messagepump angle, as that sounds quite
 promising.

 Regards,

 Andy
 Francois PIETTE wrote:
 Maybe your  problem is that when calling Connect you ask the component to
 connect. You get control back immediately (asynchronous method) while the
 component try to establish the connection for you. Once the connection is
 established, you have OnSessionConnected event which is triggered. This 
 is
 where you can start playing with send/receive.

 --
 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 http://www.overbyte.be


 - Original Message - 
 From: info2004 [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 08, 2007 5:46 PM
 Subject: [twsocket] TWSocket not connecting for me


 Hi,

 I have a problem with TWSocket.State staying as wsConnecting after I try
 and connect.

 I am using a thread to execute an SQL query. For each result from this
 query, I connect to a remote server using the TWSocket, and send some
 data. That's the plan.

 In the Thread.Execute procedure, I have created the TWSocket, then I run
 through a state machine to query the database, make the connection etc.

 Does anyone know why .State would stay at wsConnecting?

 I can connect to the server manually using telnet, and I don't have any
 problems providing additional info. Just didn't want to overload the
 email at this point.

 Thanks,

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

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


Re: [twsocket] new install in turbo Delphi 2006

2007-02-21 Thread info2004
Francois,

OK. Fair enough.

Regards,

Andy
Francois Piette wrote:
 Looking in the ReadMeV6beta.txt I go the impression that I should
 not have to change my code using this version of code.

 After install, my code complains at compile time that it can't find
 wsocket. Looking in the Vc32 dir, it looks like I need to rename wsocket
 to overbyteicswsocket.

 Is this the case or have I installed the wrong component set?
 
 In V6, the component unit names have been changed to OverbyteIcsXYZ. You
 have to update your current applications. You should probably not do any
 other changes for now.
 
 
 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 Author of ICS (Internet Component Suite, freeware)
 Author of MidWare (Multi-tier framework, freeware)
 http://www.overbyte.be
 

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