|
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.
|