Re: [twsocket] Disconnect from FTP Server [FTP Client]

2005-05-16 Thread Dan
NOOP is a good one.
Dan
- Original Message - 
From: "Francois PIETTE" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Monday, May 16, 2005 2:44 PM
Subject: Re: [twsocket] Disconnect from FTP Server [FTP Client]


>Winsock nor the component will let you know the server disconnected
>before you try to send something. So the solution is to periodically 
>send
a
>command just to get the error in case the server closed the connection.
Note
>that periodically sending a command will probably prevent the server 
>from
>closing the connection because it sees activity.

Thanks a lot. Which command can you advise to send to check if FTP
server is avialable?
Any command that do the less possible processing on the server. PWD and 
SYST
are probably the best choices. SYST is not implemented on all servers.
Probably sending an invalid command could also be good, just to receive 
the
error "unknown command" or trigger the session closed event.

I send "Syst" command (after each one minute), but get an error
thought connection was established.
Which error ? Maybe the server you use doesn't implement that command.
It is possible to get the error when user view some directory -
(command "Pwd") and in the same period of time program send command
"Syst"?
I don't understand what you try to tell me.
--
[EMAIL PROTECTED]
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] Disconnect from FTP Server [FTP Client]

2005-05-16 Thread Francois PIETTE
> > Which error ? Maybe the server you use doesn't implement that
> >command.

> Yes, similar to it. I need again to test my program.

But probably for the purpose of keeping the connection open and knowing when
it is closed, it doesn't matter if the server replies it doesn't know the
command !
--
[EMAIL PROTECTED]
http://www.overbyte.be


- Original Message - 
From: "Artem Antonov" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Monday, May 16, 2005 4:43 PM
Subject: Re: [twsocket] Disconnect from FTP Server [FTP Client]


> On Mon, 16 May 2005 15:44:25 +0200
>   "Francois PIETTE" <[EMAIL PROTECTED]> wrote:
> >
> > Any command that do the less possible processing on the server. PWD
> >and SYST
> > are probably the best choices. SYST is not implemented on all
> >servers.
> > Probably sending an invalid command could also be good, just to
> >receive the
> > error "unknown command" or trigger the session closed event.
> >
> >> I send "Syst" command (after each one minute), but get an error
> >> thought connection was established.
> >
> > Which error ? Maybe the server you use doesn't implement that
> >command.
> >
>
> Yes, similar to it. I need again to test my program.
> Thanks for help.
>
> Best regards,
> Artem Antonov.
>
> -- 
> 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] Disconnect from FTP Server [FTP Client]

2005-05-16 Thread Artem Antonov
On Mon, 16 May 2005 15:44:25 +0200
 "Francois PIETTE" <[EMAIL PROTECTED]> wrote:
Any command that do the less possible processing on the server. PWD 
and SYST
are probably the best choices. SYST is not implemented on all 
servers.
Probably sending an invalid command could also be good, just to 
receive the
error "unknown command" or trigger the session closed event.

I send "Syst" command (after each one minute), but get an error
thought connection was established.
Which error ? Maybe the server you use doesn't implement that 
command.

Yes, similar to it. I need again to test my program.
Thanks for help.
Best regards,
Artem Antonov.
--
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] Disconnect from FTP Server [FTP Client]

2005-05-16 Thread Francois PIETTE
> >Winsock nor the component will let you know the server disconnected
> >before you try to send something. So the solution is to periodically send
a
> >command just to get the error in case the server closed the connection.
Note
> >that periodically sending a command will probably prevent the server from
> >closing the connection because it sees activity.

> Thanks a lot. Which command can you advise to send to check if FTP
> server is avialable?

Any command that do the less possible processing on the server. PWD and SYST
are probably the best choices. SYST is not implemented on all servers.
Probably sending an invalid command could also be good, just to receive the
error "unknown command" or trigger the session closed event.

> I send "Syst" command (after each one minute), but get an error
> thought connection was established.

Which error ? Maybe the server you use doesn't implement that command.

> It is possible to get the error when user view some directory -
> (command "Pwd") and in the same period of time program send command
> "Syst"?

I don't understand what you try to tell me.
--
[EMAIL PROTECTED]
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] Disconnect from FTP Server [FTP Client]

2005-05-16 Thread Artem Antonov
On Mon, 16 May 2005 14:46:27 +0200
 "Francois PIETTE" <[EMAIL PROTECTED]> wrote:
Winsock nor the component will let you know the server disconnected 
before you try to send something. So the solution is to periodically send a 
command just to get the error in case the server closed the connection. Note 
that periodically sending a command will probably prevent the server from 
closing the connection because it sees activity.

--
[EMAIL PROTECTED]
http://www.overbyte.be
Thanks a lot. Which command can you advise to send to check if FTP 
server is avialable?
I send "Syst" command (after each one minute), but get an error 
thought connection was established.
It is possible to get the error when user view some directory - 
(command "Pwd") and in the same period of time program send command 
"Syst"?

Best regards,
Artem Antonov.
--
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] Disconnect from FTP Server [FTP Client]

2005-05-16 Thread Francois PIETTE
> 1) Client connects to the FTP server
> 2) After timeout or in the case of connection error FTP server close
> connection
> 3) FTP client recieve (immediately) message that FTP server is not
> avialable
> 4) Other actions on the side of client
>
> How I can realaize the 3) step?
> Does anybody solved such problem and which solutions are avialable?

Winsock nor the component will let you know the server disconnected before
you try to send something. So the solution is to periodically send a command
just to get the error in case the server closed the connection. Note that
periodically sending a command will probably prevent the server from closing
the connection because it sees activity.

--
[EMAIL PROTECTED]
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