From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Thomas To: "Trenton D. Adams" Cc: eCos mailing list Subject: RE: [ECOS] Misguided error code in net code? Date: Thu, 19 Jul 2001 16:11:00 -0000 Message-id: References: <001801c110a3$ca946100$090110ac@TRENT> X-SW-Source: 2001-07/msg00611.html On 19-Jul-2001 Trenton D. Adams wrote: > I just ran a test sending a big string from eCos over the network. My > one end terminated prematurely because I forgot to put in a loop because > my buffer is only 8K. Anyhow, on the eCos end I got an error of 22 > (EINVAL) from send. I could be wrong, but this seems like a pretty > weird error when the other end drops the connection. I would have > expected ECONNRESET. > I disagree - your request sounds pretty "invalid" to me. Honestly, most of this stuff (like what errors get returned when) come from the standard BSD stack we're using - code that's been out there for twenty years. (The numeric values may be different, but the codes the same)