<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><div class="gmail_extra"><font color="#000000">Looks good, but you'll want some error handling. There's no clean way to integrate it with Generator because the protocol doesn't allow the implementation to throw, unfortunately. (I've run into the same problem building a Generator around a database query.) I think the best solution is to add a property that returns the NSStream.streamError, or a checkError() method that throws the current error if any, and have the caller use those at the end of the iteration.</font></div></div><div class="gmail_extra"><font color="#000000"><br></font></div><div class="gmail_extra"><font color="#000000">--Jens</font></div><blockquote type="cite"><div>
</div></blockquote></body></html>