Re: NSNetService returning NSNetServicesBadArgumentError
Re: NSNetService returning NSNetServicesBadArgumentError
- Subject: Re: NSNetService returning NSNetServicesBadArgumentError
- From: Rick Mann <email@hidden>
- Date: Tue, 26 Jul 2011 17:44:40 -0700
Huh, I changed it to "_MAVLink._tcp." and I no longer get the error callback (I don't seem to get any calls back), and nothing gets advertised.
--
Rick
On Jul 26, 2011, at 17:39 , Rick Mann wrote:
> I'm calling it like this (no service is actually listening on that port yet):
>
> NSNetService* ns = [[NSNetService alloc]
> initWithDomain: @""
> type: @"_MAVLink._tcp.local."
> name: self.serverName
> port: self.serverPort];
> ns.delegate = self;
> [ns publish];
>
> But it calls me back with:
>
>
> {
> NSNetServicesErrorCode = "-72004";
> NSNetServicesErrorDomain = 10;
> }
>
> What am I forgetting? Thanks!
>
>
> --
> Rick
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Macnetworkprog mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden