Our Products:
CompleteFTP
edtFTPnet/Free
edtFTPnet/PRO
edtFTPj/Free
edtFTPj/PRO
Login
Remember
Google Login
Register
All Activity
Questions
Hot!
Unanswered
Tags
Categories
Ask a Question
Ask a Question
connected() no returning correct state
0
votes
7k
views
asked
May 16, 2007
in
Java FTP
by
S0d0
(
420
points)
Hi,
I noticed that if server drops connection
and you use client.connected() it returns true.
How can I be sure that client is connected to server?
Br,
Juha
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
12
Answers
0
votes
answered
May 31, 2007
by
S0d0
(
420
points)
Hi,
So best way to check if connection is open,
is to use noOperation() method and if it throws
exception reconnect to server....
-Juha-
Please
log in
or
register
to add a comment.
0
votes
answered
May 31, 2007
by
support2
(
162k
points)
Yes, to be absolutely sure it is best to try an operation such as this.
Clients only really know if a server has gone away if they are reading or writing the socket that connects them.
Please
log in
or
register
to add a comment.
Page:
« prev
1
2
Categories
All categories
Products
(2.8k)
CompleteFTP
(418)
Java FTP
(1k)
.NET FTP
(1.4k)
FAQ
(120)
General
(178)
Feature Requests
(21)
...