I second this comment ... WWDC example code uses this exact approach, but I'm getting a crash during execution.
Topic:
App & System Services
SubTopic:
Networking
Tags: