Discussion:
TIdFTP Socket Error Number ?
(too old to reply)
Nelson Chui
2004-02-19 03:25:53 UTC
Permalink
Hi,

I am a new user in TIndy Components. Recently, I use TIdFTP to upload
data to a FTP server but sometimes will get Socket Error(s) Number as
the following.

Socket Error # 10060
Socket Error # 11002
Socket Error # 11004

But, I don't what meanings are and I can't write related error handling
procedure(s).
Would you give me some reference about the meanings of such error
numbers and all others ?

THX.
Regards,
Nelson.
Paul Nicholls
2004-02-19 03:57:48 UTC
Permalink
You should be able to look up those numbers in the Delphi help, in the Find
tab :-)

I have done so before...good luck :-)
Post by Nelson Chui
Hi,
I am a new user in TIndy Components. Recently, I use TIdFTP to upload
data to a FTP server but sometimes will get Socket Error(s) Number as
the following.
Socket Error # 10060
Socket Error # 11002
Socket Error # 11004
But, I don't what meanings are and I can't write related error handling
procedure(s).
Would you give me some reference about the meanings of such error
numbers and all others ?
THX.
Regards,
Nelson.
Remy Lebeau (TeamB)
2004-02-19 04:36:43 UTC
Permalink
Post by Nelson Chui
Socket Error # 10060
WSAETIMEDOUT
(10060)

Connection timed out.

A connection attempt failed because the connected party did not properly
respond after a period of time, or established connection failed because
connected host has failed to respond.
Post by Nelson Chui
Socket Error # 11002
WSATRY_AGAIN
(11002)

Non-authoritative host not found.

This is usually a temporary error during hostname resolution and means
that the local server did not receive a response from an authoritative
server. A retry at some time later may be successful.
Post by Nelson Chui
Socket Error # 11004
WSANO_DATA
(11004)

Valid name, no data record of requested type.

The requested name is valid and was found in the database, but it does
not have the correct associated data being resolved for. The usual example
for this is a hostname -> address translation attempt (using gethostbyname
or WSAAsyncGetHostByName) which uses the DNS (Domain Name Server), and an MX
record is returned but no A record - indicating the host itself exists, but
is not directly reachable.


Gambit
l***@nsoftware.removeme.com
2004-02-19 14:32:04 UTC
Permalink
Post by Nelson Chui
Socket Error # 10060
Socket Error # 11002
Socket Error # 11004
These
are winsock errors. The first one means "Connection refused", which generally
means that you are attempting to connect to a hostname/port that is not
listening for incoming connections. The second two are DNS resolution errors.


Regards,
Lance R.
/n software - IP*Works! Internet Toolkit
http://www.nsoftware.com/

-
Remy Lebeau (TeamB)
2004-02-19 19:25:59 UTC
Permalink
Post by l***@nsoftware.removeme.com
The first one means "Connection refused"
The first one is a connection timeout, not a refusal. They are not the same
thing.


Gambit

Loading...