Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFNetService - PB vs. CodeWarrior problems



Using the Echo example in the developer tools and Jeremy's bugfix last week, I was finally making some progress learning about CFNetService. That is, until I tried to compile it in CodeWarrior 8.2. I'd prefer to do my work in CodeWarrior because all of our other projects which I will be using are built with CW8.2.

Besides a few small differences in what PB will allow in terms of implicit casting and what CW will not allow, the Echo server sample compiles just fine in CW with a few added explicit casts.

Then, when trying to run the CW compiled version, it runs just fine. BUT, if I try to launch multiples of the CW compiled echo server, all the subsequent instances exit with the error "AcceptConnection - Received an error (0, -72001)" which looks like a collision error from my reading of the headers.

What gets me, though, is that I can launch as many of the PB built versions as I want without getting that collision error. Thinking that maybe I screwed something up with my small additions of explicit casts to the original example, I compiled my modified source with PB and it still works exactly the same as the original example did before.

Does anybody have any clue what the difference could be between PB and CW that is causing this behavior?? I've poured over the project settings in CW and nothing sticks out to me as something I should change.


Thanks,
Justin
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Help with CFNetService/Echo example (From: Jeremy Wyld <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.