Problem with CFNetRegister
Posted
by xtrahotsauce
on Stack Overflow
See other posts from Stack Overflow
or by xtrahotsauce
Published on 2010-06-14T16:38:20Z
Indexed on
2010/06/14
16:42 UTC
Read the original article
Hit count: 167
objective-c
|apple
I'm trying to work with CFNetServices by trying to start up and publish a service asynchronously.
I'm trying to use the example code from here: http://developer.apple.com/mac/library/documentation/Networking/Conceptual/NSNetServiceProgGuide/Articles/CFNetServices.html#//apple_ref/doc/uid/30001276-SW3, but CFNetRegisterWithOptions always fails. (CFNetRegister is deprecated now). When I print out the error struct, it looks like this:
(gdb) p error
$1 = {
domain = 10,
error = -72004
}
Which doesn't seem correct to me. Does anyone know what might be wrong? Thanks!
© Stack Overflow or respective owner