View Review Details
| Book: |
|
iPhone SDK Application Development |
| Subject: |
|
Chapter 7 partially completed |
| Date: |
|
2009-03-05 16:10:45 |
| From: |
|
Gordon Vidaver
|
|
|
Not sure where else to provide feedback for this book. If there's a better place please tell me.
Seems like a good book but this complaint is about Chapter 7 : Networking.
Issues :
1) Example code is missing.
2) Client side of "7.1.5. CFSocket Example: Joke Server" is missing. I expected sections here like 7.1.5.1 "JokeServer" and 7.1.5.2 "JokeClient."
3) It's not clear from the "JokeServer" example whether the server is meant to be another iPhone or a Mac. And in general it seems you'd want to focus more on the client side of the interaction anyway.
4) It seems like more common networking examples could be have been included, like posting data to a URL. (Perhaps I missed the section on this.)
5) No screen shots of a working example on the iPhone and server, which makes me wonder if it was never actually done by the author.
|
-
Chapter 7 partially completed, March 31 2009
Submitted by
Dr. Frankencopter
[Respond | View]
I typed in the code by hand, and found a few syntax errors (TCPServer gets called TCPSocket), and the dataWithBytes method call to NSData has a comma in it that needs to be deleted, and all sorts of stuff was missing that should have been in a header file (function prototype for the AcceptCallBack, and the necessary #includes). It also generates compiler warnings when using strchr() and CFWriteStream due to different point signedness.
I doubt if this code was ever compiled...
This is pretty disappointing to me since the Networking chapter was the sole reason I bought this book...I needed working example code to get up and running fast.
I hope there will be an update, and some tested example code posted (both client and server side).
I didn't rate the book, since I jumped straight to Chapter 7 after receiving it.
-
Re: Chapter 7 partially completed, July 05 2009
Submitted by
Stacie
[Respond | View]
I totally agree with Dr. Frankencopter.
I bought the book for the CFSocket stuff. I don't think this code is ever compiled and tested!
another example in this chapter on page 183 'Sending data'
the example is never compiled and tested.
So Mr. Jonathan Zdziarski please review the code in this chapter and help us with a working CFSocket Server and Client example.
I did not expect this from an O'reilly book. Poor quality.
|
| |