This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Determining network ERROR codes
- To: "Trenton D. Adams" <tadams at extremeeng dot com>
- Subject: RE: [ECOS] Determining network ERROR codes
- From: Gary Thomas <gthomas at redhat dot com>
- Date: Thu, 19 Jul 2001 15:57:11 -0600 (MDT)
- Cc: eCos mailing list <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat, Inc.
On 19-Jul-2001 Trenton D. Adams wrote:
> Ok, how do I know what error corresponds to what? I got an error of 331
> on a connect () call. Aren't these supposed to be standard errors?
What do you mean "standard" errors?
The error numbers are in the file .../error/current/include/codes.h
You can turn an error number into a printable string by calling strerror()
> They don't seem to return the same errors as they do on Windows. Maybe
> windows redefines them!
As far as that goes, you can bet on it (and that they would say they had
to, just to standardize the process)