[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] Feature request: make socket errors public on a per socket
From: |
RAc |
Subject: |
[lwip-devel] Feature request: make socket errors public on a per socket basis |
Date: |
Sat, 19 Jan 2013 02:25:58 -0800 (PST) |
the err member variable stored in struct lwip_sock should be accessible for
evaluation by applications. The errno mechanism is useless because the error
code is not accessible on a per socket basis.
I suggest adding the following to sockets.c:
int lwip_getsockerr(int socket)
{
// add some sanity checks here
return (get_socket(socket)->err);
}
and adding the prototype to struct.h.
Thanks,
RAc
--
View this message in context:
http://lwip.100.n7.nabble.com/Feature-request-make-socket-errors-public-on-a-per-socket-basis-tp21012.html
Sent from the lwip-devel mailing list archive at Nabble.com.
- [lwip-devel] Feature request: make socket errors public on a per socket basis,
RAc <=