Re: [twsocket] Error handling

2011-01-31 Thread Francois PIETTE

Could you please clear me up a bit,


If I can...

procedure -->Where should I use for the right result in order to be able 
to catch the error into the memo (in which procedure: OnBgException or)?

begin
 if ErrCode = 0
   then Display.Lines.Add('Job done')
   else Display.Lines.Add(SslWSocketClient.WSocketErrorDesc(ErrCode));
end;


I don't know where you have the error. So I can't tell you where to put the 
code !
The most common error occurs when trying to send something while the client 
the socket is no more connected. And this exception is not caught by 
OnBgException.
You should try to reproduce the error within the debugger so that you 
exactly know where the exception occur and there use a try/except block.
OnBgException is used when the exception is going up to the message pump. 
Instead of bing triggered in the message pump context, taht is almost 
anywhere in an application, OnBgException event is called.


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

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


Re: [twsocket] Error handling

2011-01-31 Thread daniel cc

HI Francois,
Could you please clear me up a bit,

procedure -->Where should I use for the right result in order to be able to 
catch the error into the memo (in which procedure: OnBgException or)?

begin
 if ErrCode = 0
   then Display.Lines.Add('Job done')
   else Display.Lines.Add(SslWSocketClient.WSocketErrorDesc(ErrCode));
end;

Thanks

-Original Message- 
From: Francois PIETTE

Sent: Monday, January 31, 2011 11:39 AM
To: ICS support mailing
Subject: Re: [twsocket] Error handling


There camed up a little pop-up saying "Socket error 10052"
This camed up when I pulled the network cable off (testing in windows xp 
professional).


Sorry, I had not seen it. I don't think the "little pop-up" is part of ICS.
ICS trigger exception and that is what is useful.

Could you please correct me if any of these is wrong (trying to find out 
socket states for log events)?


This is OK but error prone because there could be a change in the code in a
future version.

Also have a look at WSocketErrorDesc().

--
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: "daniel cc" 

To: "ICS support mailing" 
Sent: Monday, January 31, 2011 8:54 AM
Subject: Re: [twsocket] Error handling



Sorry Francois,
I tought I had it in the previous mail.

Here it is,
There camed up a little pop-up saying "Socket error 10052"
This camed up when I pulled the network cable off (testing in windows xp 
professional).


However,
I have just tested again with this and the error is gone but I still would 
very much like to catch the errors and put them into the log. For that I 
very much need some samples.
procedure TfrmMain.SslWSocketClientBgException(Sender: TObject; E: 
Exception;

 var CanClose: Boolean);
begin
 CanClose := True;
 Display.lines.Add('Connection terminated');
end;


Could you please correct me if any of these is wrong (trying to find out 
socket states for log events)?

/
const
aSocketState: array[TSocketState] of string = (
 'Invalid',   'Opened',
 'Bound', 'Connecting',
 'Connected', 'Accepting',
 'Listening', 'Closed', 'Closing');
/////


-Original Message- 
From: Francois PIETTE

Sent: Monday, January 31, 2011 9:08 AM
To: ICS support mailing
Subject: Re: [twsocket] Error handling

Daniel,

You have not answered my question: What is the exception/error which is
generated ?

One we know which error/exception is killing you, we'll probably be able 
to

give a better idea.
OnBgException handle background exceptions, that is exceptions triggered 
in

the message pump and not handled elsewhere. You can also have exception
anywhere you call an ICS method and you catch it with a try/except. But
usually there is no such exception unless you've made a programming error 
or

miunderstood some concept. So plese tell us what exception/error you
have !

--
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: "daniel cc" 

To: "ICS support mailing" 
Sent: Monday, January 31, 2011 7:46 AM
Subject: Re: [twsocket] Error handling



Hello,
Thanks for the response.
Sorry for delay.

Do we have any demos where --> OnBgException is handled?
I simply can't find any, in the server or the client demos.
I have tryed to set "Can Close" and put the error into the memo with no 
success.
All I need is to avoid the error pop-up and put the error into the 
memo/log file.


If anyone has ever done this,
could you please post some example of how it is done or can be done.

Thanks

-Original Message- 
From: Francois PIETTE

Sent: Thursday, January 27, 2011 10:51 PM
To: ICS support mailing
Subject: Re: [twsocket] Error handling

Can someone please guide me to a demo where the ICS Socket errors are 
handled?
I have checked almost all and each one of them are having some handling 
but I can’t get the result I need.


Example: If I pull the network cable from the client I get socket error 
pop-up

which is something that I wouldn’t like to see.


What is the exception/error which is generated ?

See OnBgException event.

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

Re: [twsocket] Error handling

2011-01-31 Thread Francois PIETTE

There camed up a little pop-up saying "Socket error 10052"
This camed up when I pulled the network cable off (testing in windows xp 
professional).


Sorry, I had not seen it. I don't think the "little pop-up" is part of ICS. 
ICS trigger exception and that is what is useful.


Could you please correct me if any of these is wrong (trying to find out 
socket states for log events)?


This is OK but error prone because there could be a change in the code in a 
future version.


Also have a look at WSocketErrorDesc().

--
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: "daniel cc" 

To: "ICS support mailing" 
Sent: Monday, January 31, 2011 8:54 AM
Subject: Re: [twsocket] Error handling



Sorry Francois,
I tought I had it in the previous mail.

Here it is,
There camed up a little pop-up saying "Socket error 10052"
This camed up when I pulled the network cable off (testing in windows xp 
professional).


However,
I have just tested again with this and the error is gone but I still would 
very much like to catch the errors and put them into the log. For that I 
very much need some samples.
procedure TfrmMain.SslWSocketClientBgException(Sender: TObject; E: 
Exception;

 var CanClose: Boolean);
begin
 CanClose := True;
 Display.lines.Add('Connection terminated');
end;


Could you please correct me if any of these is wrong (trying to find out 
socket states for log events)?

/
const
aSocketState: array[TSocketState] of string = (
 'Invalid',   'Opened',
 'Bound', 'Connecting',
 'Connected', 'Accepting',
 'Listening', 'Closed', 'Closing');
/////


-Original Message- 
From: Francois PIETTE

Sent: Monday, January 31, 2011 9:08 AM
To: ICS support mailing
Subject: Re: [twsocket] Error handling

Daniel,

You have not answered my question: What is the exception/error which is
generated ?

One we know which error/exception is killing you, we'll probably be able 
to

give a better idea.
OnBgException handle background exceptions, that is exceptions triggered 
in

the message pump and not handled elsewhere. You can also have exception
anywhere you call an ICS method and you catch it with a try/except. But
usually there is no such exception unless you've made a programming error 
or

miunderstood some concept. So plese tell us what exception/error you
have !

--
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: "daniel cc" 

To: "ICS support mailing" 
Sent: Monday, January 31, 2011 7:46 AM
Subject: Re: [twsocket] Error handling



Hello,
Thanks for the response.
Sorry for delay.

Do we have any demos where --> OnBgException is handled?
I simply can't find any, in the server or the client demos.
I have tryed to set "Can Close" and put the error into the memo with no 
success.
All I need is to avoid the error pop-up and put the error into the 
memo/log file.


If anyone has ever done this,
could you please post some example of how it is done or can be done.

Thanks

-Original Message- 
From: Francois PIETTE

Sent: Thursday, January 27, 2011 10:51 PM
To: ICS support mailing
Subject: Re: [twsocket] Error handling

Can someone please guide me to a demo where the ICS Socket errors are 
handled?
I have checked almost all and each one of them are having some handling 
but I can’t get the result I need.


Example: If I pull the network cable from the client I get socket error 
pop-up

which is something that I wouldn’t like to see.


What is the exception/error which is generated ?

See OnBgException event.

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

2011-01-30 Thread daniel cc

Sorry Francois,
I tought I had it in the previous mail.

Here it is,
There camed up a little pop-up saying "Socket error 10052"
This camed up when I pulled the network cable off (testing in windows xp 
professional).


However,
I have just tested again with this and the error is gone but I still would 
very much like to catch the errors and put them into the log. For that I 
very much need some samples.
procedure TfrmMain.SslWSocketClientBgException(Sender: TObject; E: 
Exception;

 var CanClose: Boolean);
begin
 CanClose := True;
 Display.lines.Add('Connection terminated');
end;


Could you please correct me if any of these is wrong (trying to find out 
socket states for log events)?

/
const
aSocketState: array[TSocketState] of string = (
 'Invalid',   'Opened',
 'Bound', 'Connecting',
 'Connected', 'Accepting',
 'Listening', 'Closed', 'Closing');
/


-Original Message- 
From: Francois PIETTE

Sent: Monday, January 31, 2011 9:08 AM
To: ICS support mailing
Subject: Re: [twsocket] Error handling

Daniel,

You have not answered my question: What is the exception/error which is
generated ?

One we know which error/exception is killing you, we'll probably be able to
give a better idea.
OnBgException handle background exceptions, that is exceptions triggered in
the message pump and not handled elsewhere. You can also have exception
anywhere you call an ICS method and you catch it with a try/except. But
usually there is no such exception unless you've made a programming error or
miunderstood some concept. So plese tell us what exception/error you
have !

--
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: "daniel cc" 

To: "ICS support mailing" 
Sent: Monday, January 31, 2011 7:46 AM
Subject: Re: [twsocket] Error handling



Hello,
Thanks for the response.
Sorry for delay.

Do we have any demos where --> OnBgException is handled?
I simply can't find any, in the server or the client demos.
I have tryed to set "Can Close" and put the error into the memo with no 
success.
All I need is to avoid the error pop-up and put the error into the 
memo/log file.


If anyone has ever done this,
could you please post some example of how it is done or can be done.

Thanks

-Original Message- 
From: Francois PIETTE

Sent: Thursday, January 27, 2011 10:51 PM
To: ICS support mailing
Subject: Re: [twsocket] Error handling

Can someone please guide me to a demo where the ICS Socket errors are 
handled?
I have checked almost all and each one of them are having some handling 
but I can’t get the result I need.


Example: If I pull the network cable from the client I get socket error 
pop-up

which is something that I wouldn’t like to see.


What is the exception/error which is generated ?

See OnBgException event.

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


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

2011-01-30 Thread Francois PIETTE

Daniel,

You have not answered my question: What is the exception/error which is 
generated ?


One we know which error/exception is killing you, we'll probably be able to 
give a better idea.
OnBgException handle background exceptions, that is exceptions triggered in 
the message pump and not handled elsewhere. You can also have exception 
anywhere you call an ICS method and you catch it with a try/except. But 
usually there is no such exception unless you've made a programming error or 
miunderstood some concept. So plese tell us what exception/error you 
have !


--
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: "daniel cc" 

To: "ICS support mailing" 
Sent: Monday, January 31, 2011 7:46 AM
Subject: Re: [twsocket] Error handling



Hello,
Thanks for the response.
Sorry for delay.

Do we have any demos where --> OnBgException is handled?
I simply can't find any, in the server or the client demos.
I have tryed to set "Can Close" and put the error into the memo with no 
success.
All I need is to avoid the error pop-up and put the error into the 
memo/log file.


If anyone has ever done this,
could you please post some example of how it is done or can be done.

Thanks

-Original Message- 
From: Francois PIETTE

Sent: Thursday, January 27, 2011 10:51 PM
To: ICS support mailing
Subject: Re: [twsocket] Error handling

Can someone please guide me to a demo where the ICS Socket errors are 
handled?
I have checked almost all and each one of them are having some handling 
but I can’t get the result I need.


Example: If I pull the network cable from the client I get socket error 
pop-up

which is something that I wouldn’t like to see.


What is the exception/error which is generated ?

See OnBgException event.

--
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] Error handling

2011-01-30 Thread daniel cc

Hello,
Thanks for the response.
Sorry for delay.

Do we have any demos where --> OnBgException is handled?
I simply can't find any, in the server or the client demos.
I have tryed to set "Can Close" and put the error into the memo with no 
success.
All I need is to avoid the error pop-up and put the error into the memo/log 
file.


If anyone has ever done this,
could you please post some example of how it is done or can be done.

Thanks

-Original Message- 
From: Francois PIETTE

Sent: Thursday, January 27, 2011 10:51 PM
To: ICS support mailing
Subject: Re: [twsocket] Error handling

Can someone please guide me to a demo where the ICS Socket errors are 
handled?
I have checked almost all and each one of them are having some handling 
but I can’t get the result I need.


Example: If I pull the network cable from the client I get socket error 
pop-up

which is something that I wouldn’t like to see.


What is the exception/error which is generated ?

See OnBgException event.

--
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] Error handling

2011-01-27 Thread Francois PIETTE
Can someone please guide me to a demo where the ICS Socket errors are 
handled?
I have checked almost all and each one of them are having some handling 
but I can’t get the result I need.


Example: If I pull the network cable from the client I get socket error 
pop-up

which is something that I wouldn’t like to see.


What is the exception/error which is generated ?

See OnBgException event.

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

[twsocket] Error handling

2011-01-27 Thread daniel cc
Hello,
Can someone please guide me to a demo where the ICS Socket errors are handled?
I have checked almost all and each one of them are having some handling but I 
can’t get the result I need.

Example: If I pull the network cable from the client I get socket error pop-up 
which is something that I wouldn’t like to see.
I would like to handle the errors into the log file and read them if needed.
Please notice,
I don’t need help for putting errors into the log file, I just need to know 
about how the errors are handled best in the socket components.

Thanks in advance
--
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 handling in FTPcli

2009-06-11 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote:
>> I wonder how you solved logging or even a live-display with multiple
>> instances?
> 
> The traffic is not too heavy, 

That makes it a bit easier, and most likely you log into a database
don't you? 

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


Re: [twsocket] Error handling in FTPcli

2009-06-11 Thread Angus Robertson - Magenta Systems Ltd
> I wonder how you solved logging or even a live-display with multiple
> instances? 

The traffic is not too heavy, the DVRs use WiFi to communicate when they
are in (or near) the bus garage and only run when the ignition is turned
on.  So not too many running at a time.  Also, CCTV is not live, when the
police want something, a booking is created to retrieve x minutes from a
specific day, and the files are recovered.  

Newer buses are using 3G so are in permanent contact, but we are not
doing CCTV on those, and they have PCs so call home, rather than being
called.  

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] Error handling in FTPcli

2009-06-11 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote:

> I do have one application using async FTP to upload and download from
> multiple remote FTP servers simultaneously, these FTP servers being in
> mobile digital video recorders on buses, but it's very much custom
> since the FTP server is non-standard.

I wonder how you solved logging or even a live-display with multiple
instances? My single-instance, async, FTP-client applications may produce
up to 1600 log-entries per second with small files in a 100 mbit LAN
in verbose logging mode.
   
--
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


Re: [twsocket] Error handling in FTPcli

2009-06-09 Thread Angus Robertson - Magenta Systems Ltd
> > What was the behaviour if you used multiple asynchronously working
> > ICS-components in the same thread, they all use their own message
> > pump, won't that work? What were the problems?
> 
> Got it, rather late, though :) 
> Thinking non-blocking since the beginning :)

The applications in which I use TMagFtp synchronously only attempt to
transfer one FTP file at a time, but are driven by timer events so
various other functions work at the same time as 'blocking' FTP. 

I do have one application using async FTP to upload and download from
multiple remote FTP servers simultaneously, these FTP servers being in
mobile digital video recorders on buses, but it's very much custom since
the FTP server is non-standard. 

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] Error handling in FTPcli

2009-06-09 Thread Arno Garrels
Arno Garrels wrote:
> Angus Robertson - Magenta Systems Ltd wrote:
>>> Thank you Angus, I'll look at the code more intently. To take your
>>> component isn't appropriate for me, as I want multiple connections
>>> without threads.
>> 
>> You are welcome to rewrite the component using async FTP methods, it
>> just needs a state machine added to keep track of progress.  I will
>> do this myself one day, but I have other projects to finish first.
> 
> What was the behaviour if you used multiple asynchronously working
> ICS-components in the same thread, they all use their own message
> pump, won't that work? What were the problems?

Got it, rather late, though :) 
Thinking non-blocking since the beginning :)

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


Re: [twsocket] Error handling in FTPcli

2009-06-09 Thread Arno Garrels
Difficult word, I mean "synchronously working ICS-components" of course :)


Arno Garrels wrote:
> Angus Robertson - Magenta Systems Ltd wrote:
>>> Thank you Angus, I'll look at the code more intently. To take your
>>> component isn't appropriate for me, as I want multiple connections
>>> without threads.
>> 
>> You are welcome to rewrite the component using async FTP methods, it
>> just needs a state machine added to keep track of progress.  I will
>> do this myself one day, but I have other projects to finish first.
> 
> What was the behaviour if you used multiple asynchronously working
> ICS-components in the same thread, they all use their own message
> pump, won't that work? What were the problems?
> 
> --
> 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


Re: [twsocket] Error handling in FTPcli

2009-06-09 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote:
>> Thank you Angus, I'll look at the code more intently. To take your
>> component isn't appropriate for me, as I want multiple connections
>> without threads.
> 
> You are welcome to rewrite the component using async FTP methods, it
> just needs a state machine added to keep track of progress.  I will
> do this myself one day, but I have other projects to finish first.

What was the behaviour if you used multiple asynchronously working 
ICS-components in the same thread, they all use their own message 
pump, won't that work? What were the problems?

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


Re: [twsocket] Error handling in FTPcli

2009-06-09 Thread Angus Robertson - Magenta Systems Ltd
> Thank you Angus, I'll look at the code more intently. To take your 
> component isn't appropriate for me, as I want multiple connections 
> without threads.

You are welcome to rewrite the component using async FTP methods, it just
needs a state machine added to keep track of progress.  I will do this
myself one day, but I have other projects to finish first. 

You can also look at the OverbyteIcsFtpMultipartDownload demo, which uses
multiple clients to download chunks of the same file. 

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] Error handling in FTPcli

2009-06-09 Thread Anton Sviridov
Thank you Angus, I'll look at the code more intently. To take your component 
isn't appropriate for me, as I want multiple connections without threads.

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


Re: [twsocket] Error handling in FTPcli

2009-06-08 Thread Angus Robertson - Magenta Systems Ltd
> Anyway, I'll welcome any explanations of how could I handle various 
> errors in FTPcli working progress.

Just look at the code in TMagFtp about which you were asking earlier this
year, or just use it instead of TFtpCli so you don't need to be concerned
about the internals of FTP. 

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] Error handling in FTPcli

2009-06-08 Thread Anton Sviridov
Hello everyone, nobody answered me in old topic, so I'll start a new one.
I really wonder, what the concept of FTPcli's error hadling/reporting is. Some 
critical errors, such as exception during creation of local file, are reported 
as FTP error codes. So, how I could handle them in a right way - you don't mean 
coder to analyse error message strings, don't you? As for me, the exceptions 
would be more appropriate to tell that something's wrong on our side, and let 
FTP error codes to report remote errrors only. Anyway, I'll welcome any 
explanations of how could I handle various errors in FTPcli working progress.

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