Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: D Finnigan Newsgroups: comp.sys.apple2.programmer Subject: Re: Uthernet II manual - sample code Date: Mon, 6 Feb 2017 03:41:52 -0000 (UTC) Organization: Mac GUI Lines: 40 Message-ID: References: <878838ba-6367-4afb-b045-0b6bdb53ec65@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 6 Feb 2017 03:41:52 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="ea4498e6ac631998fb275be5bb422693"; logging-data="1760"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+utuY0hhQIPzJtmHRymQxn" User-Agent: Mac GUI Usenet In-Reply-To: <878838ba-6367-4afb-b045-0b6bdb53ec65@googlegroups.com> Cancel-Lock: sha1:uSP+Ok0X4rLNOh44qQaoEWTh048= Xref: csiph.com comp.sys.apple2.programmer:3254 Chris Torrence wrote: > Hi all, > > I've been working my way through the Uthernet II manual (which is > excellent > by the way!) and I've encountered a couple of minor bugs with the TCP > socket demo code. > "Fixing bugs in the sample code is an exercise left to the reader." :-D Seriously though, thanks for testing the code and reporting what you've found. I'll be sure to update the manual as soon as I can. > > I've prototyped the code, and it seems to work fine, but I'm wondering > whether anyone (David Finnigan?) sees anything wrong with this approach? It's probably good. And since you've tested it, I believe you. The next approach I found was to take advantage of address wraparound inherent in the W5100's address space. This technique is documented in a thread somewhere in this newsgroup. Finally, I also advise looking at Oliver Schmidt's driver for the W5100 (if you haven't yet). He has some more technical documentation that isn't in the manual. Further reading: https://github.com/a2retrosystems/uthernet2 https://github.com/a2retrosystems/uthernet2/wiki https://github.com/burniouf/A2osX/tree/master/DRV https://github.com/oliverschmidt/ip65/blob/master/drivers/w5100.s -- ]DF$ The Marina IP stack for Apple II-- http://marina.a2hq.com/