--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.
Yet another reason I use my own IP stack... ;-)
On Jan 4, 2016, at 7:26 AM, Adrian McEwen <adr...@mcqn.net> wrote:Yes.
And fair enough on not reusing available(). I'd only suggested that initially as (a) knowing what happens behind the scenes it initially never occurred to me that you'd ever want to return data from a Server :-D and (b) I didn't know if anyone used the returns-data version beyond the ChatServer example (I checked your Making Things Talk examples at the time and they were okay).
Legacy aside - i.e. I'm /not/ suggesting we change Server beyond adding accept(), and ideally updating the documentation to recommend against using Server.available() - I don't think it makes sense for Server to derive from Stream - although it has a socket and so looks a bit like a Client, it never makes sense to write to it, and we end up with things like available which intermingles arriving data. Anyway.